coreaudio: initialize [output] variable.
possible fix for 32bit/10.8, AudioObjectGetPropertyDataSize error
This commit is contained in:
parent
7a966c81bd
commit
70a0ee504c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user