[Android] Workaround for OpenSL ES bug

Martin Storsjö martin at martin.st
Mon Feb 10 21:56:44 CET 2014


On Sat, 1 Feb 2014, Martin Storsjö wrote:

> On Sat, 1 Feb 2014, Martin Storsjö wrote:
>
>> The attached two patches avoids the OpenSL ES resampling bug (with 48 kHz 
>> audio on Nexus 7). The callbacks from vlc modules back to functions in 
>> libvlcjni isn't too nice, but required in one way or another in order to do 
>> this, since OpenSL ES itself does not provide the native sampling rate.
>
> Thanks Rafaël for looking at it and applying it. For reference, the related 
> bug report is http://b.android.com/59453 and two alternative patches for 
> fixing it within Android are https://android-review.googlesource.com/71022 
> and https://android-review.googlesource.com/80652. (Note the list of pings on 
> the former before anything happened.)

For the record, the fix for this bug was finally merged in AOSP today, so 
unless things change more in a bad way, this bug should be fixed in the 
next major android release (unless that release is coming up so soon so 
that my merged fixes only get into next+1..).

// Martin


More information about the Android mailing list