Chromium Code Reviews| Index: media/audio/mac/audio_manager_mac.cc |
| =================================================================== |
| --- media/audio/mac/audio_manager_mac.cc (revision 86276) |
| +++ media/audio/mac/audio_manager_mac.cc (working copy) |
| @@ -127,6 +127,20 @@ |
| // TODO(cpu): implement. |
| } |
| +void AudioManagerMac::GetAudioInputDeviceNames( |
| + media::AudioDeviceNames* device_names) { |
| + // TODO(xians): query a full list of valid devices. |
| + if (HasAudioInputDevices()) { |
| + // Add the default device to the list. |
| + // We use index 0 to make up the unique_id to identify the |
| + // default devices. |
| + media::AudioDeviceName name; |
| + name.device_name = AudioManagerBase::kDefaultDeviceName; |
| + name.unique_id = std::string("0"); |
|
scherkus (not reviewing)
2011/05/27 19:10:37
nit: "0"
xians
2011/05/27 23:57:04
I will take care of it when I am back to office on
xians
2011/05/30 13:11:46
Done.
|
| + device_names->push_back(name); |
| + } |
| +} |
| + |
| // Called by the stream when it has been released by calling Close(). |
| void AudioManagerMac::ReleaseOutputStream(AudioOutputStream* stream) { |
| DCHECK(stream); |