-
Notifications
You must be signed in to change notification settings - Fork 5
/
AudioInputPatch.h
48 lines (34 loc) · 1.03 KB
/
AudioInputPatch.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#import <CoreAudio/CoreAudio.h>
#import <pthread.h>
#import "AudioToolsFFT.h"
@interface AudioInputPatch : QCPatch
{
QCStringPort *inputDeviceUID;
QCIndexPort *inputFrequencyMode;
QCStructurePort *outputWaveform;
QCStructurePort *outputPeaks;
QCStructurePort *outputFrequency;
QCImagePort *outputWaveformImage;
QCStructure *audioData;
QCStructure *audioPeaks;
QCStructure *audioFreq;
CGColorSpaceRef cs;
QCPixelFormat *pf;
NSString *deviceUID;
AudioDeviceID device;
AudioDeviceIOProcID procID;
AudioToolsFFT *_fft;
pthread_mutex_t dataLock;
QCStringPort *inputChannels;
}
- (id)initWithIdentifier:(id)fp8;
- (BOOL)setup:(QCOpenGLContext *)context;
- (void)cleanup:(QCOpenGLContext *)context;
- (void)enable:(QCOpenGLContext *)context;
- (void)disable:(QCOpenGLContext *)context;
- (void)setAudioData:(const AudioBufferList *)audioBufferList;
- (BOOL)execute:(QCOpenGLContext *)context time:(double)time arguments:(NSDictionary *)arguments;
- (void)connect;
- (void)setDeviceUID:(NSString*)uid;
- (NSString*)deviceUID;
@end