Formally disconnect from JACK at exit.

This commit is contained in:
Jonathan Moore Liles 2008-07-30 23:14:49 -05:00
parent 37935df806
commit d84383c704
3 changed files with 9 additions and 0 deletions

View File

@ -43,6 +43,12 @@ Engine::Engine ( ) : _thread( "RT" )
_xruns = 0;
}
Engine::~Engine ( )
{
jack_deactivate( _client );
jack_client_close( _client );
}
/*******************/

View File

@ -73,6 +73,7 @@ private:
public:
Engine ( );
~Engine ( );
const char * init ( void );

View File

@ -148,5 +148,7 @@ main ( int argc, char **argv )
Fl::run();
delete engine;
MESSAGE( "Your fun is over" );
}