11 #include "portaudio.h"
25 int in_device = -1,
int out_device = -1,
26 unsigned in_chans = 0,
unsigned out_chans = 2);
44 void handleError(PaError result)
throw(
CException);
46 void initialize(
unsigned sr,
unsigned bs,
int is,
int os,
unsigned ic,
unsigned oc);
AdditiveInstrument.h – Sum-of-sines synthesis instrument class.
PaStream * mStream
the PortAudio stream we play out/get data from
std::vector< IODevice * > IODeviceVector
IOs hold onto device vectors.
PaDeviceIndex mOutDev
IO device numbers.
#define CSL_mFrameRate
default sample rate (tested up to 96000)
PaStreamParameters * mOutputParameters
IO – the abstract I/O scheduling class; subclasses interface to specific I/O APIs.
PaStreamParameters * mInputParameters
PA IO stream parameters.
#define CSL_mBlockSize
normal hosts
Base class of CSL exceptions (written upper-case). Has a string message.