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:
parent
c0f31aa12a
commit
f8e91d4003
87 changed files with 7700 additions and 15819 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue