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

Unified Diff: media/audio/null_audio_sink.h

Issue 922663002: Moved the fake input stream's processing onto the audio worker thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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
« no previous file with comments | « media/audio/fake_audio_worker_unittest.cc ('k') | media/audio/null_audio_sink.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/null_audio_sink.h
diff --git a/media/audio/null_audio_sink.h b/media/audio/null_audio_sink.h
index d261602c0ec788d333fa2b16ec15276e0f352fc5..1abdb996b5c0bbbd180a4f4fee6bcc0e566cba72 100644
--- a/media/audio/null_audio_sink.h
+++ b/media/audio/null_audio_sink.h
@@ -17,7 +17,7 @@ class SingleThreadTaskRunner;
namespace media {
class AudioBus;
class AudioHash;
-class FakeAudioConsumer;
+class FakeAudioWorker;
class MEDIA_EXPORT NullAudioSink
: NON_EXPORTED_BASE(public AudioRendererSink) {
@@ -44,7 +44,7 @@ class MEDIA_EXPORT NullAudioSink
private:
// Task that periodically calls Render() to consume audio data.
- void CallRender(AudioBus* audio_bus);
+ void CallRender();
bool initialized_;
bool playing_;
@@ -54,7 +54,8 @@ class MEDIA_EXPORT NullAudioSink
scoped_ptr<AudioHash> audio_hash_;
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
- scoped_ptr<FakeAudioConsumer> fake_consumer_;
+ scoped_ptr<FakeAudioWorker> fake_worker_;
+ scoped_ptr<AudioBus> audio_bus_;
DISALLOW_COPY_AND_ASSIGN(NullAudioSink);
};
« no previous file with comments | « media/audio/fake_audio_worker_unittest.cc ('k') | media/audio/null_audio_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698