-
Notifications
You must be signed in to change notification settings - Fork 86
a2dp_aptx.c: Error submitting the packet to the decoder #47
Comments
I have pushed bff80fd That might fix this issue |
First of all thanks for fast response, and fix. Trying it out. The only way to "fix": pause, wait for all error messages printed out, play music. If there is more errors - repeat. But..
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 :) |
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. |
Indeed, tried another lib. And it's working like yours. Thank you very much ;) |
Hi!
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:
|
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. |
75af499 enable |
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 :) |
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. |
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. |
Maybe it can be fixed by switching to libopenaptx. |
This project has been deprecated. #154 There will be no bug fixing commits anymore. |
Hi, I have issue with aptx_HD sync
That's what I see in pulseaudio -vvv, a lot of messages like this (500+ lines).
When it's happening there is no sound at all from the phone.
It's became very randomly, you can listen to music 5-30 minutes and then no sound after changing songs or closing currently playing player at the phone. It will stop output errors only if you pause or closing current playing song or player. After it stops output errors music playing perfectly.
My setup:
linux: Archlinux
laptop: linux-lts (4.19.31-1), ffmpeg (1:4.1.2-1), pulseaudio (12.2-2 , 2channels - 24bit - 48000Hz),
raspberry pi: almost the same setup.
phone: Xiaomi Redmi 5 Plus, RR 7.0.1 + installed aptX libs
Tried with only one phone , haven't any other device supporting aptX.
Have tried with hardware solution CSRA64215, it's working without any issue.
Just curious if there is something wrong with my setup that's preventing sync for aptX.
P.S. Thanks a lot for this modules.
Thank you, StS.
The text was updated successfully, but these errors were encountered: