-
3rd UPDATE 21/10/21 Hi Loopback latency has dropped from 32 ms to 27 ms. However, listening to music in spotify I can hear audible glitches, and really bad when I switch the screen off/on and to a lesser extent switching apps and multitasking. It improves slightly when changing power mode to performance rather than balanced. I have attached my oboe tester auto glitch results. What could be the cause of this? I attempted a systrace but have not yet understood what I am looking for. Any advice would be gratefully appreciated. Thanks, UPDATE: Hi PREVIOUS MESSAGE: I was hoping others may be able to help me interpret the auto glitch test results from oboe tester and suggest what would improve the audio, which I am finding to be glitchy? I have a sm-p600 (2014 tablet) with a testing version of lineageos (android 10) and the developer is responsive to improvements. I have made the AOSP loopback dongle circuit which I believe is working OK. By default the gain of the system was too high and volumes were distorting - I have reduced and distortion has measurably improved (used a scope on a sine wave). SNR seems low now, obviously linked to volume. Can anyone advise what is going on here and if you see a way to ensure highest SNR and glitch free audio? Is it likely that the device is limited to 48khz only despite the defined device? Kind regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Anything Oboe (or AAudio) related is relevant.
That will require changing the Android audio framework or HAL. If you do this you have to be careful that ALL of the buffer sizes are updated. For example the DSP may still be operating at a 256 frame burst even if the HAL says 240.
What does that mean? Do you mean some tests fail because of glitches. There are some known problem with 11025 Hz. From the AutoGlitch test results, it seems like there are glitches caused by random system preemptions. When using the Manual glitch test, are the glitches periodic, like every 5 seconds? That may indicate that some periodic task is preempting the audio. Here is information for using SysTrace"
We do not have the resources to support custom versions of Android. So I will mark this as "Answered". |
Beta Was this translation helpful? Give feedback.
-
Hi Oboe_tester_systrace_audio_glitches.pdf I note in both oboe tester and spotify playback the same pattern of fastmixer, AudioOut_D and writer activity. Fastmixer fires 2 times every 4 ms, 'writer' 3 short bursts every 4 ms and AudioOut once every 17 ms. Are the fastmixer and writer activities indicative of solid data path or should I look further at burst sizes etc? Ross |
Beta Was this translation helpful? Give feedback.
Anything Oboe (or AAudio) related is relevant.
That will require changing the Android audio framework or HAL. If you do this you have to be careful that ALL of the buffer sizes are updated. For example the DSP may still be operating at a 256 frame burst even if the HAL says 240.
What does that mean? Do you mean some tests fail because of glitches. There are some known problem with 11025 Hz.
From the AutoGlitch test results, it seems like …