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

Side by Side Diff: media/audio/mac/audio_input_mac.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/mac/audio_input_mac.h ('k') | media/audio/mac/audio_low_latency_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/mac/audio_input_mac.h" 5 #include "media/audio/mac/audio_input_mac.h"
6 6
7 #include <CoreServices/CoreServices.h> 7 #include <CoreServices/CoreServices.h>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 void PCMQueueInAudioInputStream::SetVolume(double volume) { 130 void PCMQueueInAudioInputStream::SetVolume(double volume) {
131 NOTREACHED() << "Only supported for low-latency mode."; 131 NOTREACHED() << "Only supported for low-latency mode.";
132 } 132 }
133 133
134 double PCMQueueInAudioInputStream::GetVolume() { 134 double PCMQueueInAudioInputStream::GetVolume() {
135 NOTREACHED() << "Only supported for low-latency mode."; 135 NOTREACHED() << "Only supported for low-latency mode.";
136 return 0.0; 136 return 0.0;
137 } 137 }
138 138
139 bool PCMQueueInAudioInputStream::IsMuted() {
140 NOTREACHED() << "Only supported for low-latency mode.";
141 return false;
142 }
143
139 void PCMQueueInAudioInputStream::SetAutomaticGainControl(bool enabled) { 144 void PCMQueueInAudioInputStream::SetAutomaticGainControl(bool enabled) {
140 NOTREACHED() << "Only supported for low-latency mode."; 145 NOTREACHED() << "Only supported for low-latency mode.";
141 } 146 }
142 147
143 bool PCMQueueInAudioInputStream::GetAutomaticGainControl() { 148 bool PCMQueueInAudioInputStream::GetAutomaticGainControl() {
144 NOTREACHED() << "Only supported for low-latency mode."; 149 NOTREACHED() << "Only supported for low-latency mode.";
145 return false; 150 return false;
146 } 151 }
147 152
148 void PCMQueueInAudioInputStream::HandleError(OSStatus err) { 153 void PCMQueueInAudioInputStream::HandleError(OSStatus err) {
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 // complications than it solves (memory barrier issues accessing it from 243 // complications than it solves (memory barrier issues accessing it from
239 // multiple threads, looses the means to indicate OnClosed to client). 244 // multiple threads, looses the means to indicate OnClosed to client).
240 // Should determine if we need to do something equivalent here. 245 // Should determine if we need to do something equivalent here.
241 return; 246 return;
242 } 247 }
243 HandleError(err); 248 HandleError(err);
244 } 249 }
245 } 250 }
246 251
247 } // namespace media 252 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/mac/audio_input_mac.h ('k') | media/audio/mac/audio_low_latency_input_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698