mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Work around stalled AudioTrack up to API 28
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=188173078
This commit is contained in:
parent
b37773c5d6
commit
4fa383c026
1 changed files with 1 additions and 1 deletions
|
|
@ -1443,7 +1443,7 @@ public final class DefaultAudioSink implements AudioSink {
|
|||
rawPlaybackHeadPosition += passthroughWorkaroundPauseOffset;
|
||||
}
|
||||
|
||||
if (Util.SDK_INT <= 26) {
|
||||
if (Util.SDK_INT <= 28) {
|
||||
if (rawPlaybackHeadPosition == 0 && lastRawPlaybackHeadPosition > 0
|
||||
&& state == PLAYSTATE_PLAYING) {
|
||||
// If connecting a Bluetooth audio device fails, the AudioTrack may be left in a state
|
||||
|
|
|
|||
Loading…
Reference in a new issue