summaryrefslogtreecommitdiffstats
path: root/media/audio/mac
diff options
context:
space:
mode:
authorcrogers@google.com <crogers@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-22 22:10:13 +0000
committercrogers@google.com <crogers@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-22 22:10:13 +0000
commita75573d945926b844f7b1932b11088dd3956577d (patch)
tree87d17fe352083464f8209475272be002f218be1c /media/audio/mac
parenteba14eca173545eed89a2680c7f9ba5dae867693 (diff)
downloadchromium_src-a75573d945926b844f7b1932b11088dd3956577d.zip
chromium_src-a75573d945926b844f7b1932b11088dd3956577d.tar.gz
chromium_src-a75573d945926b844f7b1932b11088dd3956577d.tar.bz2
Use default "output" rather than "input" device when querying hardware sample-rate
BUG=none TEST=none (tested locally on Mac OS X to verify that hardware sample-rate is correctly retrieved) Review URL: http://codereview.chromium.org/6721001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79055 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio/mac')
-rw-r--r--media/audio/mac/audio_low_latency_output_mac.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/media/audio/mac/audio_low_latency_output_mac.cc b/media/audio/mac/audio_low_latency_output_mac.cc
index fc75701..8d258b2 100644
--- a/media/audio/mac/audio_low_latency_output_mac.cc
+++ b/media/audio/mac/audio_low_latency_output_mac.cc
@@ -210,13 +210,13 @@ double AUAudioOutputStream::HardwareSampleRate() {
AudioDeviceID device_id = kAudioDeviceUnknown;
UInt32 info_size = sizeof(device_id);
- AudioObjectPropertyAddress default_input_device_address = {
- kAudioHardwarePropertyDefaultInputDevice,
+ AudioObjectPropertyAddress default_output_device_address = {
+ kAudioHardwarePropertyDefaultOutputDevice,
kAudioObjectPropertyScopeGlobal,
kAudioObjectPropertyElementMaster
};
OSStatus result = AudioObjectGetPropertyData(kAudioObjectSystemObject,
- &default_input_device_address,
+ &default_output_device_address,
0,
0,
&info_size,