/* CMP version 1.35, june 16, 2004. Latest version available at: http://kmt.hku.nl/~pieter/SOFT/ */ /*----------------------------------------------------------------------------*/ /* Invokes audio recording. Creates a memory structure and an audiofile. Function recordAudio() will do the recording job if it is called regularly. */ short start_recordAudio(RUNNING_DATA* running, long* readIndex, char* filename, aiff_file** audioRec); /*----------------------------------------------------------------------------*/ /* Closes audiofile (after rewriting header and releasing memory related to the audiofile object) by calling function aiff_write_close() in sourcefile aiff/CMP_aiff_write.c. */ short stop_recordAudio(long* readIndex, aiff_file** audioRec); /*----------------------------------------------------------------------------*/ /* Function that is called regularly by main event loop in main(). When things go wrong, it may call stop_recordAudio() itself. If the realtime object as well as the audiofile object are present, and if there was an audiobuffer created by the realtime object, audiorecording takes place. */ short recordAudio(RUNNING_DATA* running, long* readIndex, aiff_file** audiofile);