diff options
Diffstat (limited to 'Source/WebCore/platform/audio/mac/AudioDestinationMac.cpp')
-rw-r--r-- | Source/WebCore/platform/audio/mac/AudioDestinationMac.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/WebCore/platform/audio/mac/AudioDestinationMac.cpp b/Source/WebCore/platform/audio/mac/AudioDestinationMac.cpp index 523729f..d4ecaba 100644 --- a/Source/WebCore/platform/audio/mac/AudioDestinationMac.cpp +++ b/Source/WebCore/platform/audio/mac/AudioDestinationMac.cpp @@ -51,8 +51,8 @@ double AudioDestination::hardwareSampleRate() AudioDeviceID deviceID = kAudioDeviceUnknown; UInt32 infoSize = sizeof(deviceID); - AudioObjectPropertyAddress defaultInputDeviceAddress = { kAudioHardwarePropertyDefaultInputDevice, kAudioObjectPropertyScopeGlobal, kAudioObjectPropertyElementMaster }; - OSStatus result = AudioObjectGetPropertyData(kAudioObjectSystemObject, &defaultInputDeviceAddress, 0, 0, &infoSize, (void*)&deviceID); + AudioObjectPropertyAddress defaultOutputDeviceAddress = { kAudioHardwarePropertyDefaultOutputDevice, kAudioObjectPropertyScopeGlobal, kAudioObjectPropertyElementMaster }; + OSStatus result = AudioObjectGetPropertyData(kAudioObjectSystemObject, &defaultOutputDeviceAddress, 0, 0, &infoSize, (void*)&deviceID); if (result) return 0.0; // error |