OpenSL glitches on sony XPERIA devices

54 views
Skip to first unread message

Mathieu Grondin

unread,
Jul 17, 2017, 5:51:29 PM7/17/17
to android-ndk
Hi,
I use OpenSL and buffer queue callback to output sound. This code worked fine for a long time on many devices but recently we were reported that it glitches on sony XPERIA devices running android 6.0.1.
I monitored the frequency that the callback function is being called and noticed that sometimes the time between calls is too long. Here is some info about the configuration of a sony XPERIA Z2 capture

Sample Rate : 48000
Sample per frame : 960
Num refill : 4

BEGIN        END          ELAP      DELTA
-------------------------------------------
...
12273        12273        0         11
12285        12285        0         12
12293        12293        0         8
12371        12371        0         78 <- here it took 78 ms between two calls
12379        12379        0         8
12390        12390        0         11
12405        12405        0         15

...

I then ran the Native-Audio on the same device and got the same issue. Does anyone have the same problem on those devices ?

Glenn Kasten

unread,
Jul 17, 2017, 6:14:47 PM7/17/17
to android-ndk
Can you please file a bug here:  https://source.android.com/source/report-bugs
and then update this thread with the bug number?  I'll then attempt to contact the partner.
It is likely a device-specific bug. For more information about these kind of device-specific glitch bugs,
(specifically 3:30 defines glitches/popcorn and the relationship between glitches and latency,
but you may need to view the whole video to get the context)
We are working on automated testing tools to catch these kind of device-specific glitches earlier
so they can be fixed, and providing a way to surface them to our partners.

Mathieu Grondin

unread,
Jul 18, 2017, 3:29:53 PM7/18/17
to android-ndk
Hi,

here is the ticket link : https://issuetracker.google.com/63810007
Thank you for your help. Feel free to ask me any questions.
Reply all
Reply to author
Forward
0 new messages