| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |