forked from juce-framework/JUCE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAUOutputElement.h
33 lines (25 loc) · 904 Bytes
/
AUOutputElement.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*!
@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