13
0

coreaudio: initialize [output] variable.

possible fix for 32bit/10.8,
AudioObjectGetPropertyDataSize error
This commit is contained in:
Robin Gareus 2015-06-09 19:18:31 +02:00
parent 7a966c81bd
commit 70a0ee504c

View File

@ -32,7 +32,7 @@ CoreAudioPCM::destroy_aggregate_device ()
property_address.mSelector = kAudioPlugInDestroyAggregateDevice;
property_address.mScope = kAudioObjectPropertyScopeGlobal;
property_address.mElement = kAudioObjectPropertyElementMaster;
UInt32 outDataSize;
UInt32 outDataSize = 0;
err = AudioObjectGetPropertyDataSize(_aggregate_plugin_id, &property_address, 0, NULL, &outDataSize);
if (err != noErr) {
@ -223,7 +223,7 @@ CoreAudioPCM::create_aggregate_device (
pluginAOPA.mSelector = kAudioPlugInCreateAggregateDevice;
pluginAOPA.mScope = kAudioObjectPropertyScopeGlobal;
pluginAOPA.mElement = kAudioObjectPropertyElementMaster;
UInt32 outDataSize;
UInt32 outDataSize = 0;
err = AudioObjectGetPropertyDataSize(_aggregate_plugin_id, &pluginAOPA, 0, NULL, &outDataSize);
if (err != noErr) {