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

33 lines
904 B
Objective-C

/*!
@file AudioUnitSDK/AUOutputElement.h
@copyright © 2000-2021 Apple Inc. All rights reserved.
*/
#ifndef AudioUnitSDK_AUOutputElement_h
#define AudioUnitSDK_AUOutputElement_h
#include <AudioUnitSDK/AUBuffer.h>
#include <AudioUnitSDK/AUScopeElement.h>
namespace ausdk {
/*!
@class AUOutputElement
@brief Implements an audio unit output element.
*/
class AUOutputElement : public AUIOElement {
public:
explicit AUOutputElement(AUBase& audioUnit);
AUOutputElement(AUBase& audioUnit, const AudioStreamBasicDescription& format);
AUSDK_DEPRECATED("Construct with a reference")
explicit AUOutputElement(AUBase* audioUnit) : AUOutputElement(*audioUnit) {}
// AUElement override
OSStatus SetStreamFormat(const AudioStreamBasicDescription& desc) override;
[[nodiscard]] bool NeedsBufferSpace() const override { return true; }
};
} // namespace ausdk
#endif // AudioUnitSDK_AUOutputElement_h