예제 #1
0
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;
}
예제 #2
0
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;
}
예제 #3
0
파일: ofApp.cpp 프로젝트: whg/chaldni
void ofApp::exit() {

    ofSoundStreamClose();

    delete noteToFigureManager;
    delete plateManager;
    
    delAssets();
}
예제 #4
0
파일: ofxNCoreAudio.cpp 프로젝트: cyrta/cca
/******************************************************************************
 * 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));
    }
}
예제 #5
0
void ofApp::exit(){
    ofSoundStreamStop();
    ofSoundStreamClose();
}
void audioVisualApp::exit() {
    ofSoundStreamClose();
}