mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 02:56:35 +01:00
[Summary] Fixed issue when Audio Callback thread is changed
[Reviewed by] PDavis, VKamyshniy
This commit is contained in:
parent
ffccd23f08
commit
8da1ad9fcf
4 changed files with 24 additions and 11 deletions
|
|
@ -339,6 +339,10 @@ bool WCMRAudioDevice::Streaming ()
|
|||
//**********************************************************************************************
|
||||
WTErr WCMRAudioDevice::SetStreaming (bool newState)
|
||||
{
|
||||
// We must notify angine about our intention to start streming
|
||||
// so Engine will provide all the initializations in the first audio callback
|
||||
m_pMyManager->NotifyClient (WCMRAudioDeviceManagerClient::DeviceStartsStreaming);
|
||||
|
||||
//This will most likely be overridden, the base class simply
|
||||
//changes the member.
|
||||
m_IsStreaming = newState;
|
||||
|
|
@ -361,8 +365,7 @@ WTErr WCMRAudioDevice::ResetDevice ()
|
|||
SetActive(true);
|
||||
|
||||
if (err == eNoErr && wasStreaming) {
|
||||
m_pMyManager->NotifyClient (WCMRAudioDeviceManagerClient::DeviceStartsStreaming);
|
||||
SetStreaming(true);
|
||||
err = SetStreaming(true);
|
||||
}
|
||||
|
||||
return err;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue