This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 261
Android N - audio does not play correctly #20
Comments
Issue is the same on commercial release, September security patch Nougat (Nexus 6p). Mp3 plays as static and ogg files are severely distorted. |
I investigated this issue, and came up with this issue: https://code.google.com/p/android/issues/detail?id=223824 A workaround is to change the following method, like so (commented-out is the old code): public ShortBuffer getSamples() {
if (mDecodedSamples != null) {
return mDecodedSamples;
// return mDecodedSamples.asReadOnlyBuffer();
} else {
return null;
}
} |
Thanks @niekvse that fixes the issue for me. I'm not sure if there is a more elegant fix which should be made into a pull request at least until there is a more definitive answer for proper behaviour from upstream. |
nfaralli
added a commit
that referenced
this issue
Dec 3, 2016
Thanks to niekvse who suggested a workaround to a bug in Nougat.
if music have 320 kb , Can't show wave |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When playing any audio file or recording on Android-N developer preview 4 (Nexus 6P) the audio plays but the sound is just static noise.
The text was updated successfully, but these errors were encountered: