media/library
andrewlewis 835839456f Apply playback parameters when uninitialized
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
2017-04-18 19:37:26 +01:00
..
all Generate Javadoc for each module individually 2017-03-22 19:10:15 +00:00
core Apply playback parameters when uninitialized 2017-04-18 19:37:26 +01:00
dash Automated g4 rollback of changelist 152815185. 2017-04-18 19:32:18 +01:00
hls Rename skipToKeyframeBefore -> skipData and allow skipping to EOS 2017-03-31 19:11:08 +01:00
smoothstreaming Generalize manifest parser parameters in DASH and SmoothStreaming MediaSources 2017-04-06 18:50:44 +01:00
ui Less memory allocations for repeated calls to SubtitleView.draw() 2017-04-18 19:36:08 +01:00