/* audiotools.h */ #define StartChannel(c) ControlChannel(c, CMD_START) #define StopChannel(c) ControlChannel(c, CMD_STOP) #define ResetChannel(c) ControlChannel(c, CMD_RESET) #define FlushChannel(c) ControlChannel(c, CMD_FLUSH) #define BIG_WAVE 256L /* size of biggest waveform */ #define NBR_WAVES 7L /* number of waves per instrument */ #define WAVES_TOTAL 1024L /* alloc size for instrument's waves */ #define DEFAULT_DURATION 500L /* 500/1000ths of a second default */ #define AUDBUFFERS 20L /* iob msg packets before need to allot */ #define YES 1L #define NO 0L /* In a later release, ExtIOB will be defined exactly as IOAudio but * with a few more items tacked on at the end. This minimizes changes * to existing routines when we later extend the structure. */ #define ExtIOB IOAudio /* a few forward declarations */ extern struct ExtIOB *GetIOB(); extern int FreeIOB(); extern int GetChannel(); extern int GetStereoPair(); extern int InitBlock(); extern struct MsgPort *CreatePort();