From c5cb9d89b46cddabbe9d3c77afe4bd00c7bd2152 Mon Sep 17 00:00:00 2001 From: sletz Date: Wed, 22 Oct 2008 09:33:00 +0000 Subject: [PATCH] Init property size in JackCoreAudioAdapter and JackCoreAudioDriver. git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3027 0c269be4-1314-0410-8aa9-9f06e86f4224 --- macosx/coreaudio/JackCoreAudioAdapter.cpp | 2 +- macosx/coreaudio/JackCoreAudioDriver.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/macosx/coreaudio/JackCoreAudioAdapter.cpp b/macosx/coreaudio/JackCoreAudioAdapter.cpp index e6711888..62ff1ad4 100644 --- a/macosx/coreaudio/JackCoreAudioAdapter.cpp +++ b/macosx/coreaudio/JackCoreAudioAdapter.cpp @@ -801,7 +801,7 @@ int JackCoreAudioAdapter::OpenAUHAL(bool capturing, } AudioDeviceID currAudioDeviceID; - UInt32 size; + UInt32 size = sizeof(AudioDeviceID); err1 = AudioUnitGetProperty(fAUHAL, kAudioOutputUnitProperty_CurrentDevice, kAudioUnitScope_Global, 0, &currAudioDeviceID, &size); if (err1 != noErr) { jack_error("Error calling AudioUnitGetProperty - kAudioOutputUnitProperty_CurrentDevice"); diff --git a/macosx/coreaudio/JackCoreAudioDriver.cpp b/macosx/coreaudio/JackCoreAudioDriver.cpp index 9f0058ec..1b2a3bfb 100644 --- a/macosx/coreaudio/JackCoreAudioDriver.cpp +++ b/macosx/coreaudio/JackCoreAudioDriver.cpp @@ -683,7 +683,7 @@ int JackCoreAudioDriver::OpenAUHAL(bool capturing, } AudioDeviceID currAudioDeviceID; - UInt32 size; + UInt32 size = sizeof(AudioDeviceID); err1 = AudioUnitGetProperty(fAUHAL, kAudioOutputUnitProperty_CurrentDevice, kAudioUnitScope_Global, 0, &currAudioDeviceID, &size); if (err1 != noErr) { jack_error("Error calling AudioUnitGetProperty - kAudioOutputUnitProperty_CurrentDevice");