Commit 875d1f9d authored by jcacerec's avatar jcacerec
Browse files

fix bug in closing audio

parent 36c8e601
......@@ -226,7 +226,8 @@ int JackAudioInterface::startProcess() const
int JackAudioInterface::stopProcess() const
{
QMutexLocker locker(&sJackMutex);
if ( int code = (jack_client_close(mClient)) )
int code = (jack_client_close(mClient));
if ( code != 0 )
{
std::cerr << "Cannot disconnect client" << std::endl;
return(code);
......
......@@ -356,8 +356,9 @@ void JackTrip::stop()
mDataProtocolReceiver->stop();
mDataProtocolReceiver->wait();
// Stop the jack process callback
mAudioInterface->stopProcess();
// Stop the audio processes
//mAudioInterface->stopProcess();
closeAudio();
cout << "JackTrip Processes STOPPED!" << endl;
cout << gPrintSeparator << endl;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment