AEAudioUnitModule.h
Go to the documentation of this file.
1 //
2 // AEAudioUnitModule.h
3 // TheAmazingAudioEngine
4 //
5 // Created by Michael Tyson on 25/03/2016.
6 // Copyright © 2016 A Tasty Pixel. All rights reserved.
7 //
8 // This software is provided 'as-is', without any express or implied
9 // warranty. In no event will the authors be held liable for any damages
10 // arising from the use of this software.
11 //
12 // Permission is granted to anyone to use this software for any purpose,
13 // including commercial applications, and to alter it and redistribute it
14 // freely, subject to the following restrictions:
15 //
16 // 1. The origin of this software must not be misrepresented; you must not
17 // claim that you wrote the original software. If you use this software
18 // in a product, an acknowledgment in the product documentation would be
19 // appreciated but is not required.
20 //
21 // 2. Altered source versions must be plainly marked as such, and must not be
22 // misrepresented as being the original software.
23 //
24 // 3. This notice may not be removed or altered from any source distribution.
25 //
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 #import "AEModule.h"
32 #import <AudioToolbox/AudioToolbox.h>
33 
43 
53 - (instancetype _Nullable)initWithRenderer:(AERenderer * _Nullable)renderer
54  componentDescription:(AudioComponentDescription)audioComponentDescription;
55 
56 
68 - (instancetype _Nullable)initWithRenderer:(AERenderer * _Nullable)renderer
69  componentDescription:(AudioComponentDescription)audioComponentDescription
70  subrenderer:(AERenderer * _Nullable)subrenderer;
71 
78 - (double)getParameterValueForId:(AudioUnitParameterID)parameterId;
79 
90 - (void)setParameterValue:(double)value forId:(AudioUnitParameterID)parameterId;
91 
97 - (BOOL)setup;
98 
104 - (void)initialize;
105 
111 - (void)teardown;
112 
121 AudioUnit _Nonnull AEAudioUnitModuleGetAudioUnit(__unsafe_unretained AEAudioUnitModule * _Nonnull module);
122 
124 @property (nonatomic, readonly) AudioComponentDescription componentDescription;
125 
127 @property (nonatomic, readonly) AudioUnit _Nonnull audioUnit;
128 
130 @property (nonatomic, readonly) BOOL hasInput;
131 
133 @property (nonatomic) double wetDry;
134 
136 // You may change this value at any time; assignment is thread-safe.
137 @property (nonatomic, strong) AERenderer * _Nullable subrenderer;
138 
139 @end
140 
141 #ifdef __cplusplus
142 }
143 #endif