void ofExitCallback(){ //------------------------ // try to close engine if needed: ofSoundShutdown(); //------------------------ //------------------------ // try to close rtAudio: ofSoundStreamClose(); //------------------------ // try to close quicktime, for non-linux systems: #if defined( TARGET_OSX ) || defined( TARGET_WIN32 ) closeQuicktime(); #endif //------------------------ // try to close freeImage: ofCloseFreeImage(); //------------------------ // try to close free type: // .... #ifdef WIN32_HIGH_RES_TIMING timeEndPeriod(1); #endif ofNotifyExit(); if(OFSAptr)delete OFSAptr; }
void ofExitCallback(){ //------------------------ // try to close FMOD: ofSoundPlayer::closeFmod(); //------------------------ //------------------------ // try to close rtAudio: ofSoundStreamClose(); // try to close quicktime, for non-linux systems: #if defined( TARGET_OSX ) || defined( TARGET_WIN32 ) closeQuicktime(); #endif #ifdef WIN32_HIGH_RES_TIMING timeEndPeriod(1); #endif if(OFSAptr)OFSAptr->exit(); #ifdef OF_USING_POCO ofNotifyEvent( ofEvents.exit, voidEventArgs ); #endif if(OFSAptr)delete OFSAptr; }
void ofApp::exit() { ofSoundStreamClose(); delete noteToFigureManager; delete plateManager; delAssets(); }
/****************************************************************************** * The update function runs continuously. Use it to update states and variables *****************************************************************************/ void ofxNCoreAudio::_update(ofEventArgs &e) { // recording auto stop if (bRecording && audioBufSize>=maxAudioSize) { printf("Sound is too long. Try to set MAXAUDIOSIZE in config.xml."); ofSoundStreamClose(); bool setBool = false; controls->update(sourcePanel_record, kofxGui_Set_Bool, &setBool, sizeof(bool)); bRecording = false; } // playing auto stop if (bPlaying && audioBufSize-curPlayPoint < AUDIO_SEGBUF_SIZE) { curPlayPoint = 0; ofSoundStreamClose(); bPlaying = false; bool setBool = false; controls->update(sourcePanel_playpause, kofxGui_Set_Bool, &setBool, sizeof(bool)); } }
void ofApp::exit(){ ofSoundStreamStop(); ofSoundStreamClose(); }
void audioVisualApp::exit() { ofSoundStreamClose(); }