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

Unified Diff: media/audio/fake_audio_input_stream.h

Issue 2919793002: Detect AudioInputStream muting and propagate to MediaStreamAudioSource. (Closed)
Patch Set: Reworked test again, to make tsan2 happy. Created 3 years, 6 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/audio_input_ipc.h ('k') | media/audio/fake_audio_input_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/fake_audio_input_stream.h
diff --git a/media/audio/fake_audio_input_stream.h b/media/audio/fake_audio_input_stream.h
index d9b186a844a9b97d3d3390d6787db2aca3f01f6c..bafa7a1c70d673cadc965309380fa21ad9a8c3d0 100644
--- a/media/audio/fake_audio_input_stream.h
+++ b/media/audio/fake_audio_input_stream.h
@@ -54,6 +54,10 @@ class MEDIA_EXPORT FakeAudioInputStream
// input stream.
static void BeepOnce();
+ // Set the muted state for _all_ FakeAudioInputStreams. The value is global,
+ // so it can be set before any FakeAudioInputStreams have been created.
+ static void SetGlobalMutedState(bool is_muted);
+
private:
FakeAudioInputStream(AudioManagerBase* manager,
const AudioParameters& params);
« no previous file with comments | « media/audio/audio_input_ipc.h ('k') | media/audio/fake_audio_input_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698