адаптация s13bby/osc под vst и gui. (вайбкод)
вайбкод потому что мне в моменте стало понятно. что проще было сразу писать на фреймворке JUCE, чем адаптировать консольное приложение на MiniAudio. обновляться данный репозиторий не будет. СmakeLists адаптирован онли под linux.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user