Giter Site home page Giter Site logo

Comments (12)

EHfive avatar EHfive commented on August 27, 2024 1

Looks like it's mine personal issue because of 3rd-party aptx libs, isn't ?

It might be.

Actually the same error "Synchronization error" printed when I use https://github.com/Magisk-Modules-Repo/aptx on my Oneplus 2, LineageOS 16; But without any issue on my Oneplus 6t which has official aptX/aptX HD support.

Look into ffmpeg aptX source, "Synchronization error" stands for a bad aptx frames data.

The 3rd-party libs might don't have ability to handle UI tones that break aptx frames data.

from pulseaudio-modules-bt.

EHfive avatar EHfive commented on August 27, 2024

I have pushed bff80fd

That might fix this issue

from pulseaudio-modules-bt.

xstsx avatar xstsx commented on August 27, 2024

First of all thanks for fast response, and fix. Trying it out.
No more errors with playing music/video for now.
Still problems with music/video , every videos from this playlist is starting with errors, after 3-5 repeats of pause/play it's starting to play. If it had to pause at some point and rebuff - again errors.

The only way to "fix": pause, wait for all error messages printed out, play music. If there is more errors - repeat.

But..

[aptx_hd @ 0x5567b5358680] Synchronization error
D: [bluetooth] a2dp_aptx.c: Error submitting the packet to the decoder

Appears at UI "clicks", at DTMF tones when trying to dial number, at Volume up/down sounds, Power on/ off screen. Lets say all UI sounds is producing this error.

A little overpass for me now it's to mute UI sounds :)
Looks like it's mine personal issue because of 3rd-party aptx libs, isn't ?

from pulseaudio-modules-bt.

xstsx avatar xstsx commented on August 27, 2024

Indeed, tried another lib. And it's working like yours.
Some random Sync errors ,at least it doesn't "stuck" on it.
I got everything work, UI sounds, video and audio on Raspberry PI.

Thank you very much ;)

from pulseaudio-modules-bt.

gpeter12 avatar gpeter12 commented on August 27, 2024

Hi!
I have the exact same issue. I'm also trying to use a Raspberry Pi for bluetooth sink with aptX-HD. I'm getting a lot of Synchronization error.

[aptx_hd @ 0x1444c70] Synchronization error
[aptx_hd @ 0x1444c70] Synchronization error
[aptx_hd @ 0x1444c70] Synchronization error
[aptx_hd @ 0x1444c70] Synchronization error
[aptx_hd @ 0x1444c70] Synchronization error
[aptx_hd @ 0x1444c70] Synchronization error
I: [alsa-sink-bcm2835 ALSA] module-loopback.c: Could not peek into queue
I: [alsa-sink-bcm2835 ALSA] module-loopback.c: Could not peek into queue
[aptx_hd @ 0x1444c70] Synchronization error
I: [alsa-sink-bcm2835 ALSA] module-loopback.c: Could not peek into queue
[aptx_hd @ 0x1444c70] Synchronization error
[aptx_hd @ 0x1444c70] Synchronization error
I: [alsa-sink-bcm2835 ALSA] module-loopback.c: Could not peek into queue
[aptx_hd @ 0x1444c70] Synchronization error
I: [alsa-sink-bcm2835 ALSA] module-loopback.c: Could not peek into queue

The most interesting thing is that on my laptop (also as a sink) with the same code and with (almost) the same libavcodec version it works just perfectly fine. With ZERO error messages in the log.

I suspect that the error message comes from the 1039. line of libavcodec's aptx.c. But I assume the problem isn't in libavcodec.

I would really really appreciate the help because I spent almost 3 days on this issue already. It would be a waste...

My setup:

  • Asus Zenfone 5Z (it has official support for AptX-HD and AAC)
    • Android 9
    • Bluetooth 5.0
  • Raspberry Pi 3 B (with official PSU)
    • Bluetooth 4.1
  • Laptop: Asus N550JK (Intel Core I7 4700HQ version)
    • Ubuntu 19.04
    • Bluetooth 4.0
  • libavcodec-dev:armhf (7:4.1.4-1+rpt1~deb10u1)
  • pulseaudio-modules-bt version is the currently most recent 3ecf1d7
  • pulseaudio version is pulseaudio 12.2-dirty (git: ee910cf6d) (because with the current master I couldn't get it work at all)

from pulseaudio-modules-bt.

xstsx avatar xstsx commented on August 27, 2024

I think I found the solution: https://hackaday.io/project/165208-an-old-rotary-phone-as-bluetooth-set/log/162491-setting-up-the-bluetooth

changing imtu making it more stable. no more Sync errors when changing tracks.

from pulseaudio-modules-bt.

EHfive avatar EHfive commented on August 27, 2024

75af499 enable autodetect_mtu by default, hope it helps

from pulseaudio-modules-bt.

xstsx avatar xstsx commented on August 27, 2024

75af499 enable autodetect_mtu by default, hope it helps

Thank you for quick response :)

I would say it's working, but only for playing music when you stays only at APTX-HD profile(+notifications sound)

But if you receive call ,profile changing to HSP/HFP. After a call it's trying to switch back to APTX-HD and then it's falling to alot of Sync errors.

Overall playing music over APTX-HD became more stable, no more skips/silence/hanging up. Overall playback latency stable at 195-200ms (before it was very random 180-500ms)

I will continue trying figure out this behavior and what making it. Maybe it's my personal issue :)

from pulseaudio-modules-bt.

stale avatar stale commented on August 27, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from pulseaudio-modules-bt.

stale avatar stale commented on August 27, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from pulseaudio-modules-bt.

EHfive avatar EHfive commented on August 27, 2024

Maybe it can be fixed by switching to libopenaptx.

from pulseaudio-modules-bt.

EHfive avatar EHfive commented on August 27, 2024

This project has been deprecated. #154

There will be no bug fixing commits anymore.

from pulseaudio-modules-bt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.