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

Side by Side Diff: media/audio/fake_audio_input_stream.cc

Issue 645923002: Add support for audio input mute detection on all platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « media/audio/fake_audio_input_stream.h ('k') | media/audio/mac/audio_input_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/audio/fake_audio_input_stream.h" 5 #include "media/audio/fake_audio_input_stream.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "media/audio/audio_manager_base.h" 9 #include "media/audio/audio_manager_base.h"
10 #include "media/base/audio_bus.h" 10 #include "media/base/audio_bus.h"
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 196
197 void FakeAudioInputStream::SetVolume(double volume) { 197 void FakeAudioInputStream::SetVolume(double volume) {
198 DCHECK(audio_manager_->GetTaskRunner()->BelongsToCurrentThread()); 198 DCHECK(audio_manager_->GetTaskRunner()->BelongsToCurrentThread());
199 } 199 }
200 200
201 double FakeAudioInputStream::GetVolume() { 201 double FakeAudioInputStream::GetVolume() {
202 DCHECK(audio_manager_->GetTaskRunner()->BelongsToCurrentThread()); 202 DCHECK(audio_manager_->GetTaskRunner()->BelongsToCurrentThread());
203 return 1.0; 203 return 1.0;
204 } 204 }
205 205
206 bool FakeAudioInputStream::IsMuted() {
207 DCHECK(audio_manager_->GetTaskRunner()->BelongsToCurrentThread());
208 return false;
209 }
210
206 void FakeAudioInputStream::SetAutomaticGainControl(bool enabled) {} 211 void FakeAudioInputStream::SetAutomaticGainControl(bool enabled) {}
207 212
208 bool FakeAudioInputStream::GetAutomaticGainControl() { 213 bool FakeAudioInputStream::GetAutomaticGainControl() {
209 return true; 214 return true;
210 } 215 }
211 216
212 // static 217 // static
213 void FakeAudioInputStream::BeepOnce() { 218 void FakeAudioInputStream::BeepOnce() {
214 BeepContext* beep_context = g_beep_context.Pointer(); 219 BeepContext* beep_context = g_beep_context.Pointer();
215 beep_context->SetBeepOnce(true); 220 beep_context->SetBeepOnce(true);
216 } 221 }
217 222
218 } // namespace media 223 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/fake_audio_input_stream.h ('k') | media/audio/mac/audio_input_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698