mirror of
https://github.com/samsonjs/media.git
synced 2026-04-09 11:55:46 +00:00
If AudioTrack.setPlaybackParameters was called before initialization (for example, when an audio renderer is enabled) the parameters would actually be dropped, because configure calls reset, which didn't apply draining playback parameters if the track was not initialized. It would then overwrite the draining parameters with the current parameters. Set the playback parameters directly (without draining) for uninitialized tracks so that the call to setPlaybackParameters in configure is a no-op. Also, reset the stored channel count and sample rate when the audio processor is released so that configure returns true when it is next used, which makes sure that it gets flushed. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=153078759 |
||
|---|---|---|
| .. | ||
| all | ||
| core | ||
| dash | ||
| hls | ||
| smoothstreaming | ||
| ui | ||