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

Unified Diff: media/audio/audio_input_device.cc

Issue 2919793002: Detect AudioInputStream muting and propagate to MediaStreamAudioSource. (Closed)
Patch Set: Created 3 years, 7 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/audio/audio_input_device.cc
diff --git a/media/audio/audio_input_device.cc b/media/audio/audio_input_device.cc
index 66966381cdcc46ab9f264d3ac2db7ad854bf4d90..aac0808e20b3798e523c25b5dcf388d6260009d8 100644
--- a/media/audio/audio_input_device.cc
+++ b/media/audio/audio_input_device.cc
@@ -225,6 +225,11 @@ void AudioInputDevice::OnError() {
}
}
+void AudioInputDevice::OnMuted(bool is_muted) {
+ DCHECK(task_runner()->BelongsToCurrentThread());
Max Morin 2017/06/02 09:56:05 I think you have to check |state_| here to ensure
ossu-chromium 2017/06/02 10:48:00 Oh, you're probably right. I'll look into it.
+ callback_->OnCaptureMuted(is_muted);
+}
+
void AudioInputDevice::OnIPCClosed() {
DCHECK(task_runner()->BelongsToCurrentThread());
state_ = IPC_CLOSED;

Powered by Google App Engine
This is Rietveld 408576698