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

Unified Diff: media/filters/audio_renderer_impl.h

Issue 141243003: Add AudioBufferStream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@decoderstream_rebased
Patch Set: even more cleanup! Created 6 years, 10 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/audio_renderer_impl.h
diff --git a/media/filters/audio_renderer_impl.h b/media/filters/audio_renderer_impl.h
index 9d7167c083dac969f72e77f3a1e26c71ef9f2c39..cb8b5dc9acbd9c6c985496c2365a36f7bc1176c2 100644
--- a/media/filters/audio_renderer_impl.h
+++ b/media/filters/audio_renderer_impl.h
@@ -29,7 +29,7 @@
#include "media/base/audio_renderer_sink.h"
#include "media/base/decryptor.h"
#include "media/filters/audio_renderer_algorithm.h"
-#include "media/filters/decoder_selector.h"
+#include "media/filters/decoder_stream.h"
namespace base {
class SingleThreadTaskRunner;
@@ -108,7 +108,7 @@ class MEDIA_EXPORT AudioRendererImpl
};
// Callback from the audio decoder delivering decoded audio samples.
- void DecodedAudioReady(AudioDecoder::Status status,
+ void DecodedAudioReady(AudioBufferStream::Status status,
const scoped_refptr<AudioBuffer>& buffer);
// Handles buffers that come out of |splicer_|.
@@ -169,9 +169,7 @@ class MEDIA_EXPORT AudioRendererImpl
//
// |decrypting_demuxer_stream| is non-null if a DecryptingDemuxerStream was
// created to help decrypt the encrypted stream.
- void OnDecoderSelected(
- scoped_ptr<AudioDecoder> decoder,
- scoped_ptr<DecryptingDemuxerStream> decrypting_demuxer_stream);
+ void OnAudioBufferStreamInitialized(bool succes);
// Used to initiate the flush operation once all pending reads have
// completed.
@@ -195,7 +193,7 @@ class MEDIA_EXPORT AudioRendererImpl
// may deadlock between |task_runner_| and the audio callback thread.
scoped_refptr<media::AudioRendererSink> sink_;
- scoped_ptr<AudioDecoderSelector> decoder_selector_;
+ AudioBufferStream audio_buffer_stream_;
// These two will be set by AudioDecoderSelector::SelectAudioDecoder().
scoped_ptr<AudioDecoder> decoder_;
@@ -206,7 +204,6 @@ class MEDIA_EXPORT AudioRendererImpl
// Callbacks provided during Initialize().
PipelineStatusCB init_cb_;
- StatisticsCB statistics_cb_;
base::Closure underflow_cb_;
TimeCB time_cb_;
base::Closure ended_cb_;

Powered by Google App Engine
This is Rietveld 408576698