1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-05 06:01:04 +01:00

Merge remote-tracking branch 'paul/AUbug'

This commit is contained in:
James Crook
2017-02-24 16:37:19 +00:00

View File

@@ -245,7 +245,7 @@ void AudioUnitEffectsModule::LoadAudioUnitsOfType(OSType inAUType,
result = AudioComponentGetDescription(component, &found);
if (result == noErr)
{
CFStringRef cfName;
CFStringRef cfName{};
result = AudioComponentCopyName(component, &cfName);
CFunique_ptr<const __CFString> uName{ cfName };
@@ -760,7 +760,7 @@ void AudioUnitEffectImportDialog::OnOk(wxCommandEvent & WXUNUSED(evt))
continue;
}
CFDataRef xml;
CFDataRef xml{};
SInt32 error;
Boolean res = CFURLCreateDataAndPropertiesFromResource(kCFAllocatorDefault,
url.get(),
@@ -1673,7 +1673,7 @@ bool AudioUnitEffect::LoadFactoryPreset(int id)
OSStatus result;
// Retrieve the list of factory presets
CFArrayRef array;
CFArrayRef array{};
UInt32 dataSize = sizeof(CFArrayRef);
result = AudioUnitGetProperty(mUnit,
kAudioUnitProperty_FactoryPresets,
@@ -1724,7 +1724,7 @@ wxArrayString AudioUnitEffect::GetFactoryPresets()
wxArrayString presets;
// Retrieve the list of factory presets
CFArrayRef array;
CFArrayRef array{};
UInt32 dataSize = sizeof(CFArrayRef);
result = AudioUnitGetProperty(mUnit,
kAudioUnitProperty_FactoryPresets,