13 #import <AudioToolbox/AudioToolbox.h>
23 class AUIO :
public IO {
26 AUIO(
unsigned s_rate,
unsigned b_size,
int in_device,
int out_device,
27 unsigned in_chans,
unsigned out_chans);
30 virtual void open() throw(CException);
31 virtual
void close() throw(CException);
32 virtual
void start() throw(CException);
33 virtual
void stop() throw(CException);
35 void setAudioUnit(AudioUnit au) { mAudioUnit = au; };
38 virtual
Buffer & getInput(
unsigned numFrames,
unsigned numChannels) throw(CException);
41 AudioComponentInstance mAudioUnit;
42 void handleError(OSStatus result) throw(CException);
52 iPhoneIO(
unsigned s_rate,
unsigned b_size,
int in_device,
int out_device,
53 unsigned in_chans,
unsigned out_chans);
56 void open()
throw(CException);
57 void close()
throw(CException);
58 void start()
throw(CException);
59 void stop()
throw(CException);
62 void handleError(OSStatus result)
throw(CException);
AdditiveInstrument.h – Sum-of-sines synthesis instrument class.
CoreAudio IO class for the iPhone.
Buffer – the multi-channel sample buffer class (passed around between generators and IO guys)...
General-purpose AudioUnit IO class.
Base class of CSL exceptions (written upper-case). Has a string message.