mirror of
https://github.com/samsonjs/media.git
synced 2026-04-09 11:55:46 +00:00
Reconfigure audio sink when PCM encoding changes
Note: - Fixing this uncovers another bug in how audio processor draining works, so the test playlist still doesn't play correctly after this change. - Once we reconfigure the audio sink based on the ExoPlayer Format rather than the codec MediaFormat in a later change, this change can be reverted. Issue: #6601 PiperOrigin-RevId: 281264149
This commit is contained in:
parent
3023bb4d91
commit
1730b6bb51
1 changed files with 1 additions and 0 deletions
|
|
@ -512,6 +512,7 @@ public class MediaCodecAudioRenderer extends MediaCodecRenderer implements Media
|
|||
return Util.areEqual(oldFormat.sampleMimeType, newFormat.sampleMimeType)
|
||||
&& oldFormat.channelCount == newFormat.channelCount
|
||||
&& oldFormat.sampleRate == newFormat.sampleRate
|
||||
&& oldFormat.pcmEncoding == newFormat.pcmEncoding
|
||||
&& oldFormat.initializationDataEquals(newFormat)
|
||||
&& !MimeTypes.AUDIO_OPUS.equals(oldFormat.sampleMimeType);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue