Formally disconnect from JACK at exit.
This commit is contained in:
parent
37935df806
commit
d84383c704
|
@ -43,6 +43,12 @@ Engine::Engine ( ) : _thread( "RT" )
|
|||
_xruns = 0;
|
||||
}
|
||||
|
||||
Engine::~Engine ( )
|
||||
{
|
||||
jack_deactivate( _client );
|
||||
jack_client_close( _client );
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************/
|
||||
|
|
|
@ -73,6 +73,7 @@ private:
|
|||
public:
|
||||
|
||||
Engine ( );
|
||||
~Engine ( );
|
||||
|
||||
const char * init ( void );
|
||||
|
||||
|
|
|
@ -148,5 +148,7 @@ main ( int argc, char **argv )
|
|||
|
||||
Fl::run();
|
||||
|
||||
delete engine;
|
||||
|
||||
MESSAGE( "Your fun is over" );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue