1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

AU: Replace CoreAudioUtilityClasses with files from new SDK

This commit is contained in:
reuk 2021-07-20 13:18:59 +01:00
parent c0f31aa12a
commit f8e91d4003
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C
87 changed files with 7700 additions and 15819 deletions

View file

@ -0,0 +1,27 @@
/*!
@file AudioUnitSDK/AUOutputElement.cpp
@copyright © 2000-2021 Apple Inc. All rights reserved.
*/
#include <AudioUnitSDK/AUBase.h>
#include <AudioUnitSDK/AUOutputElement.h>
namespace ausdk {
AUOutputElement::AUOutputElement(AUBase& audioUnit) : AUIOElement(audioUnit) { AllocateBuffer(); }
AUOutputElement::AUOutputElement(AUBase& audioUnit, const AudioStreamBasicDescription& format)
: AUIOElement{ audioUnit, format }
{
AllocateBuffer();
}
OSStatus AUOutputElement::SetStreamFormat(const AudioStreamBasicDescription& desc)
{
const OSStatus result = AUIOElement::SetStreamFormat(desc); // inherited
if (result == noErr) {
AllocateBuffer();
}
return result;
}
} // namespace ausdk