-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCoreAudioKit.framework.h
More file actions
239 lines (192 loc) · 9.25 KB
/
CoreAudioKit.framework.h
File metadata and controls
239 lines (192 loc) · 9.25 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
// ========== CoreAudioKit.framework/Headers/CABTMIDILocalPeripheralViewController.h
// =================================================================================================
// CABTMIDILocalPeripheralViewController.h
// =================================================================================================
/*
File: CABTMIDILocalPeripheralViewController.h
Framework: CoreAudioKit
Copyright (c) 2014 Apple Inc. All Rights Reserved.
*/
#import <UIKit/UIKit.h>
API_AVAILABLE(ios(8.0)) API_UNAVAILABLE(macos, tvos, watchos)
@interface CABTMIDILocalPeripheralViewController : UIViewController
@end
// ========== CoreAudioKit.framework/Headers/CoreAudioKit.h
#import <CoreAudioKit/CAInterAppAudioSwitcherView.h>
#import <CoreAudioKit/CAInterAppAudioTransportView.h>
#import <CoreAudioKit/CABTMIDILocalPeripheralViewController.h>
#import <CoreAudioKit/CABTMIDICentralViewController.h>
#import <CoreAudioKit/AUViewController.h>
// ========== CoreAudioKit.framework/Headers/AUViewController.h
//
// AUViewController.h
// Framework: CoreAudioKit
//
// Copyright © 2015 Apple Inc. All rights reserved.
//
#if __OBJC2__
#import <AudioUnit/AudioUnit.h>
#import <Foundation/NSExtensionRequestHandling.h>
#if TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
typedef UIViewController AUViewControllerBase;
#else
#import <AppKit/AppKit.h>
typedef NSViewController AUViewControllerBase;
#endif
NS_ASSUME_NONNULL_BEGIN
API_AVAILABLE(macos(10.11), ios(9.0)) API_UNAVAILABLE(watchos)
@interface AUViewController : AUViewControllerBase <NSExtensionRequestHandling>
@end
/*! @class AUAudioUnitViewConfiguration
@brief Properties of the configuration that a host uses to embed the view of an audio unit.
@discussion
Hosts may support embedding the view of an audio unit in different configurations. These
configurations may vary in the size reserved for the audio unit's view and the additional
control surfaces that are displayed along with it. The host can propose several view
configurations and the audio unit should report the ones which it supports.
See the documentation for supportedViewConfigurations.
*/
API_AVAILABLE(macos(10.13), ios(11.0)) API_UNAVAILABLE(watchos)
@interface AUAudioUnitViewConfiguration : NSObject <NSSecureCoding>
/*! @method initWithWidth
@brief Designated initializer.
@param width
The width associated with this view configuration.
@param height
The height associated with this view configuration.
@param hostHasController
This property controls whether the host shows its own control surface in this view
configuration.
@return Returns the newly created view configuration object.
*/
- (instancetype)initWithWidth:(CGFloat)width height:(CGFloat)height hostHasController:(BOOL)hostHasController;
/*! @property width
@brief The width of the view, measured in points.
@discussion
Setting the width to 0 will match any width.
*/
@property (NS_NONATOMIC_IOSONLY, readonly) CGFloat width;
/*! @property height
@brief The height of the view, measured in points.
@discussion
Setting the height to 0 will match any height.
*/
@property (NS_NONATOMIC_IOSONLY, readonly) CGFloat height;
/*! @property hostHasController
@brief Boolean property specifying whether the host displays its own control surface
when showing the view of the audio unit.
*/
@property (NS_NONATOMIC_IOSONLY, readonly) BOOL hostHasController;
@end
API_AVAILABLE(macos(10.12), ios(10.0)) API_UNAVAILABLE(watchos)
@interface AUAudioUnit (AUAudioUnit_ViewController)
/*! @method requestViewControllerWithCompletionHandler:
@brief Obtains an audio unit's view controller (and thereby a view).
@discussion
Asynchronously requests the audio unit's view controller. This method will later call the
completion handler, in a thread/dispatch queue context internal to the implementation, with
a view controller, or nil in the case of an audio unit without a custom view controller.
*/
- (void)requestViewControllerWithCompletionHandler:(void (^)(AUViewControllerBase * __nullable viewController))completionHandler;
/*! @method supportedViewConfigurations
@param availableViewConfigurations
The list of all available view configurations supported by the host.
@return
A set of indices of view configurations from the availableViewConfigurations array that the
audio unit supports.
@brief Query the list of supported view configurations.
@discussion
The host can query the audio unit for all the view configurations it supports.
Hosts can support multiple configurations in which they can display the user interfaces of
audio units (for example: full screen, normal, live mode, etc). These configurations can be
of different sizes and the host might display its own control surfaces along with the view
of the audio unit. The host will call this method and pass an array of supported
configurations.
The audio unit should override this method and implement its own logic to report all the
view configurations it supports. The size of the view in the selected configuration should
be large enough to fit the view of the audio unit, otherwise it might be truncated and a
scroll bar might be necessary to navigate it.
In case an empty set is returned from this method, it is considered that the plugin only
supports the largest available view configuration.
*/
- (NSIndexSet *)supportedViewConfigurations:(NSArray<AUAudioUnitViewConfiguration *> *)availableViewConfigurations API_AVAILABLE(macosx(10.13), ios(11.0)) API_UNAVAILABLE(watchos, tvos);
/*! @method selectViewConfiguration
@param viewConfiguration
The requested view configuration.
The view configuration passed to this method should be one which was indicated as supported
via supportedViewConfigurations. If any other, unsupported, view configuration is passed or
if supportedViewConfigurations returns an empty set, the audio unit implementation should
fall back to its default (largest available) view configuration.
@brief Request a view configuration from the audio unit.
@discussion
The host can use this method to switch the audio unit's view into a new configuration.
Audio Units should override this method with the logic needed to adapt their view controller
to the requested configuration.
*/
- (void)selectViewConfiguration:(AUAudioUnitViewConfiguration *)viewConfiguration API_AVAILABLE(macosx(10.13), ios(11.0)) API_UNAVAILABLE(watchos, tvos);
@end
NS_ASSUME_NONNULL_END
#endif
// ========== CoreAudioKit.framework/Headers/CAInterAppAudioTransportView.h
// =================================================================================================
// CAInterAppAudioTransportView.h
// =================================================================================================
/*
File: CAInterAppAudioTransportView.h
Framework: CoreAudioKit
Copyright (c) 2014 Apple Inc. All Rights Reserved.
*/
#import <UIKit/UIKit.h>
#import <AudioUnit/AudioUnit.h>
NS_ASSUME_NONNULL_BEGIN
API_DEPRECATED("Inter-App Audio API is deprecated in favor of Audio Units", ios(8.0, 13.0)) API_UNAVAILABLE(uikitformac, macos, tvos, watchos)
@interface CAInterAppAudioTransportView : UIView
@property(getter=isEnabled) BOOL enabled;
@property(nonatomic,readonly,getter=isPlaying) BOOL playing;
@property(nonatomic,readonly,getter=isRecording) BOOL recording;
@property(nonatomic,readonly,getter=isConnected) BOOL connected;
/* Appearance properties */
@property(nonatomic,strong)UIColor *labelColor;
@property(nonatomic,strong)UIFont *currentTimeLabelFont;
@property(nonatomic,strong)UIColor *rewindButtonColor;
@property(nonatomic,strong)UIColor *playButtonColor;
@property(nonatomic,strong)UIColor *pauseButtonColor;
@property(nonatomic,strong)UIColor *recordButtonColor;
-(void) setOutputAudioUnit: (AudioUnit) au;
@end
NS_ASSUME_NONNULL_END
// ========== CoreAudioKit.framework/Headers/CAInterAppAudioSwitcherView.h
// =================================================================================================
// CAInterAppAudioSwitcherView.h
// =================================================================================================
/*
File: CAInterAppAudioSwitcherView.h
Framework: CoreAudioKit
Copyright (c) 2014 Apple Inc. All Rights Reserved.
*/
#import <AudioUnit/AudioUnit.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
API_DEPRECATED("Inter-App Audio API is deprecated in favor of Audio Units", ios(8.0, 13.0)) API_UNAVAILABLE(uikitformac, macos, tvos, watchos)
@interface CAInterAppAudioSwitcherView : UIView
@property (getter = isShowingAppNames) BOOL showingAppNames; // Defaults to NO
// Node apps should pass their output audio unit
// Host apps should pass null
- (void)setOutputAudioUnit:(nullable AudioUnit)au;
- (CGFloat) contentWidth;
@end
NS_ASSUME_NONNULL_END
// ========== CoreAudioKit.framework/Headers/CABTMIDICentralViewController.h
// =================================================================================================
// CABTMIDICentralViewController.h
// =================================================================================================
/*
File: CABTMIDICentralViewController.h
Framework: CoreAudioKit
Copyright (c) 2014 Apple Inc. All Rights Reserved.
*/
#import <UIKit/UIKit.h>
API_AVAILABLE(ios(8.0)) API_UNAVAILABLE(macos, watchos)
@interface CABTMIDICentralViewController : UITableViewController
@end