Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1375)

Unified Diff: media/filters/decrypting_audio_decoder.h

Issue 177333003: Add support for midstream audio configuration changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ABS
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/filters/decrypting_audio_decoder.h
diff --git a/media/filters/decrypting_audio_decoder.h b/media/filters/decrypting_audio_decoder.h
index 43e05e24010036fc74f7eaa877d0d69351a2ab7c..cadbde80e0a753e3139cb01e1cccf483c7baf7a9 100644
--- a/media/filters/decrypting_audio_decoder.h
+++ b/media/filters/decrypting_audio_decoder.h
@@ -50,9 +50,6 @@ class MEDIA_EXPORT DecryptingAudioDecoder : public AudioDecoder {
virtual scoped_refptr<AudioBuffer> GetDecodeOutput() OVERRIDE;
virtual void Reset(const base::Closure& closure) OVERRIDE;
virtual void Stop(const base::Closure& closure) OVERRIDE;
- virtual int bits_per_channel() OVERRIDE;
- virtual ChannelLayout channel_layout() OVERRIDE;
- virtual int samples_per_second() OVERRIDE;
private:
// For a detailed state diagram please see this link: http://goo.gl/8jAok
@@ -90,10 +87,6 @@ class MEDIA_EXPORT DecryptingAudioDecoder : public AudioDecoder {
// Resets decoder and calls |reset_cb_|.
void DoReset();
- // Updates audio configs from |demuxer_stream_| and resets
- // |output_timestamp_base_| and |total_samples_decoded_|.
- void UpdateDecoderConfig();
-
// Sets timestamp and duration for |queued_audio_frames_| to make sure the
// renderer always receives continuous frames without gaps and overlaps.
void EnqueueFrames(const Decryptor::AudioBuffers& frames);
@@ -129,11 +122,6 @@ class MEDIA_EXPORT DecryptingAudioDecoder : public AudioDecoder {
Decryptor::AudioBuffers queued_audio_frames_;
- // Decoded audio format.
- int bits_per_channel_;
- ChannelLayout channel_layout_;
- int samples_per_second_;
-
scoped_ptr<AudioTimestampHelper> timestamp_helper_;
DISALLOW_COPY_AND_ASSIGN(DecryptingAudioDecoder);

Powered by Google App Engine
This is Rietveld 408576698