mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-12 09:36:33 +01:00
[Summary] Removed unnecessary abortion
This commit is contained in:
parent
22d68d14ce
commit
708f4bf12b
1 changed files with 3 additions and 17 deletions
|
|
@ -950,23 +950,9 @@ void WCMRPortAudioDevice::stopStreaming (bool callerIsWaiting/*=false*/)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::cout << "Failed to stop PA stream normaly! Aborting the stream. Error:" << Pa_GetErrorText (paErr) << std::endl;
|
std::cout << "Failed to stop PA stream normaly! Error:" << Pa_GetErrorText (paErr) << std::endl;
|
||||||
DEBUG_MSG( "Failed to stop PA stream normaly! Aborting the stream. Error:" << Pa_GetErrorText (paErr) );
|
DEBUG_MSG( "Failed to stop PA stream normaly! Error:" << Pa_GetErrorText (paErr) );
|
||||||
Pa_Sleep(PROPERTY_CHANGE_SLEEP_TIME_MILLISECONDS); // sleep some time to make sure the change has place
|
m_lastErr = eGenericErr;
|
||||||
PaError abortionError = Pa_AbortStream( m_PortAudioStream );
|
|
||||||
|
|
||||||
if(abortionError == paNoError || abortionError == paStreamIsStopped)
|
|
||||||
{
|
|
||||||
// if the stream was stopped successfully
|
|
||||||
m_IsStreaming = false;
|
|
||||||
m_pInputData = NULL;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
std::cout << "Failed to stop PA stream: " << Pa_GetErrorText (paErr) << std::endl;
|
|
||||||
DEBUG_MSG( "Failed to stop PA stream " << Pa_GetErrorText (paErr) );
|
|
||||||
m_lastErr = eGenericErr;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue