mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +01:00
coreaudio: initialize [output] variable.
possible fix for 32bit/10.8, AudioObjectGetPropertyDataSize error
This commit is contained in:
parent
7a966c81bd
commit
70a0ee504c
1 changed files with 2 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ CoreAudioPCM::destroy_aggregate_device ()
|
||||||
property_address.mSelector = kAudioPlugInDestroyAggregateDevice;
|
property_address.mSelector = kAudioPlugInDestroyAggregateDevice;
|
||||||
property_address.mScope = kAudioObjectPropertyScopeGlobal;
|
property_address.mScope = kAudioObjectPropertyScopeGlobal;
|
||||||
property_address.mElement = kAudioObjectPropertyElementMaster;
|
property_address.mElement = kAudioObjectPropertyElementMaster;
|
||||||
UInt32 outDataSize;
|
UInt32 outDataSize = 0;
|
||||||
|
|
||||||
err = AudioObjectGetPropertyDataSize(_aggregate_plugin_id, &property_address, 0, NULL, &outDataSize);
|
err = AudioObjectGetPropertyDataSize(_aggregate_plugin_id, &property_address, 0, NULL, &outDataSize);
|
||||||
if (err != noErr) {
|
if (err != noErr) {
|
||||||
|
|
@ -223,7 +223,7 @@ CoreAudioPCM::create_aggregate_device (
|
||||||
pluginAOPA.mSelector = kAudioPlugInCreateAggregateDevice;
|
pluginAOPA.mSelector = kAudioPlugInCreateAggregateDevice;
|
||||||
pluginAOPA.mScope = kAudioObjectPropertyScopeGlobal;
|
pluginAOPA.mScope = kAudioObjectPropertyScopeGlobal;
|
||||||
pluginAOPA.mElement = kAudioObjectPropertyElementMaster;
|
pluginAOPA.mElement = kAudioObjectPropertyElementMaster;
|
||||||
UInt32 outDataSize;
|
UInt32 outDataSize = 0;
|
||||||
|
|
||||||
err = AudioObjectGetPropertyDataSize(_aggregate_plugin_id, &pluginAOPA, 0, NULL, &outDataSize);
|
err = AudioObjectGetPropertyDataSize(_aggregate_plugin_id, &pluginAOPA, 0, NULL, &outDataSize);
|
||||||
if (err != noErr) {
|
if (err != noErr) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue