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

Unified Diff: media/audio/audio_input_controller.h

Issue 11416350: Tab Audio Mirroring: WebContentsAudioInputStream is a new implementation which represents the lifet… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 11 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 | « content/content_tests.gypi ('k') | media/audio/audio_input_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_input_controller.h
diff --git a/media/audio/audio_input_controller.h b/media/audio/audio_input_controller.h
index 77e3e87840633bf6fbaf9431347880096a4d6dd8..362cadd9138205e1199b88e204248990bd594f9e 100644
--- a/media/audio/audio_input_controller.h
+++ b/media/audio/audio_input_controller.h
@@ -146,6 +146,17 @@ class MEDIA_EXPORT AudioInputController
// External synchronous writer for audio controller.
SyncWriter* sync_writer);
+ // Factory method for creating an AudioInputController for low-latency mode,
+ // taking ownership of |stream|. The stream will be opened on the audio
+ // thread, and when that is done, the event handler will receive an
+ // OnCreated() call from that same thread.
+ static scoped_refptr<AudioInputController> CreateForStream(
+ AudioManager* audio_manager,
+ EventHandler* event_handler,
+ AudioInputStream* stream,
+ // External synchronous writer for audio controller.
+ SyncWriter* sync_writer);
+
// Starts recording using the created audio input stream.
// This method is called on the creator thread.
virtual void Record();
@@ -195,6 +206,7 @@ class MEDIA_EXPORT AudioInputController
// Methods called on the audio thread (owned by the AudioManager).
void DoCreate(AudioManager* audio_manager, const AudioParameters& params,
const std::string& device_id);
+ void DoCreateForStream(AudioInputStream* stream_to_control);
void DoRecord();
void DoClose();
void DoReportError(int code);
« no previous file with comments | « content/content_tests.gypi ('k') | media/audio/audio_input_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698