Csound API  6.07
General Input/Output

Setting the device or filename name for Csound input and output. More...

Functions

PUBLIC const char * csoundGetOutputName (CSOUND *)
 Returns the output audio output name (-o). More...
 
PUBLIC void csoundSetOutput (CSOUND *csound, char *name, char *type, char *format)
 Set output destination, type and format type can be one of "wav","aiff", "au","raw", "paf", "svx", "nist", "voc", "ircam","w64","mat4", "mat5", "pvf","xi", "htk","sds","avr","wavex","sd2", "flac", "caf","wve","ogg","mpc2k","rf64", or NULL (use default or realtime IO). More...
 
PUBLIC void csoundSetInput (CSOUND *csound, char *name)
 Set input source. More...
 
PUBLIC void csoundSetMIDIInput (CSOUND *csound, char *name)
 Set MIDI input device name/number. More...
 
PUBLIC void csoundSetMIDIFileInput (CSOUND *csound, char *name)
 Set MIDI file input name. More...
 
PUBLIC void csoundSetMIDIOutput (CSOUND *csound, char *name)
 Set MIDI output device name/number. More...
 
PUBLIC void csoundSetMIDIFileOutput (CSOUND *csound, char *name)
 Set MIDI file utput name. More...
 
PUBLIC void csoundSetFileOpenCallback (CSOUND *p, void(*func)(CSOUND *, const char *, int, int, int))
 Sets an external callback for receiving notices whenever Csound opens a file. More...
 

Detailed Description

Setting the device or filename name for Csound input and output.

These functions are used to set the input and output command line flags that apply to both input and output of audio and MIDI. See command line flags -o, -i, -M and -Q in the Csound Reference Manual.

Function Documentation

PUBLIC const char* csoundGetOutputName ( CSOUND )

Returns the output audio output name (-o).

PUBLIC void csoundSetFileOpenCallback ( CSOUND p,
void(*)(CSOUND *, const char *, int, int, int)  func 
)

Sets an external callback for receiving notices whenever Csound opens a file.

The callback is made after the file is successfully opened. The following information is passed to the callback: char* pathname of the file; either full or relative to current dir int a file type code from the enumeration CSOUND_FILETYPES int 1 if Csound is writing the file, 0 if reading int 1 if a temporary file that Csound will delete; 0 if not

Pass NULL to disable the callback. This callback is retained after a csoundReset() call.

PUBLIC void csoundSetInput ( CSOUND csound,
char *  name 
)

Set input source.

PUBLIC void csoundSetMIDIFileInput ( CSOUND csound,
char *  name 
)

Set MIDI file input name.

PUBLIC void csoundSetMIDIFileOutput ( CSOUND csound,
char *  name 
)

Set MIDI file utput name.

PUBLIC void csoundSetMIDIInput ( CSOUND csound,
char *  name 
)

Set MIDI input device name/number.

PUBLIC void csoundSetMIDIOutput ( CSOUND csound,
char *  name 
)

Set MIDI output device name/number.

PUBLIC void csoundSetOutput ( CSOUND csound,
char *  name,
char *  type,
char *  format 
)

Set output destination, type and format type can be one of "wav","aiff", "au","raw", "paf", "svx", "nist", "voc", "ircam","w64","mat4", "mat5", "pvf","xi", "htk","sds","avr","wavex","sd2", "flac", "caf","wve","ogg","mpc2k","rf64", or NULL (use default or realtime IO).

format can be one of "alaw", "schar", "uchar", "float", "double", "long", "short", "ulaw", "24bit", "vorbis", or NULL (use default or realtime IO). For RT audio, use device_id from CS_AUDIODEVICE for a given audio device.