-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathAudioFileInputPatch.h
45 lines (34 loc) · 1.03 KB
/
AudioFileInputPatch.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
#import "AudioToolsFFT.h"
#import <AudioToolbox/AudioToolbox.h>
#ifndef __LP64__
#import <QuickTime/QuickTime.h>
#endif
@interface AudioFileInputPatch : QCPatch
{
QCStringPort *inputPath;
QCIndexPort *inputSampleBuffer;
QCIndexPort *inputFrequencyMode;
QCStructurePort *outputWaveform;
QCStructurePort *outputPeaks;
QCStructurePort *outputFrequency;
QCImagePort *outputWaveformImage;
ExtAudioFileRef audioFile;
AudioBufferList *mBufferList;
float sampleRate;
SInt64 headerFrames;
CGColorSpaceRef cs;
BOOL isMP3; // need to decode mp3s a bit differently to get meaningful datas...
#ifndef __LP64__
Movie movieFile;
MovieAudioExtractionRef extractionSessionRef;
#endif
AudioToolsFFT *_fft;
int _requestedFrames;
}
- (id)initWithIdentifier:(id)fp8;
- (BOOL)setup:(QCOpenGLContext *)context;
- (void)cleanup:(QCOpenGLContext *)context;
- (void)enable:(QCOpenGLContext *)context;
- (void)disable:(QCOpenGLContext *)context;
- (BOOL)execute:(QCOpenGLContext *)context time:(double)time arguments:(NSDictionary *)arguments;
@end