Implemented Tracks backend/engine reaction on device configuration changes (like I/O layout changes etc.) on Windows

This commit is contained in:
Greg Zharun 2014-07-01 14:25:03 +03:00
parent c8b931d1b5
commit 9cdb799f3b
5 changed files with 65 additions and 23 deletions

View file

@ -998,9 +998,6 @@ void WCMRPortAudioDevice::resetDevice (bool callerIsWaiting /*=false*/ )
bool wasStreaming = Streaming();
bool wasActive = Active();
// Notify the Application about reset
m_pMyManager->NotifyClient (WCMRAudioDeviceManagerClient::RequestReset);
// Reset the device
stopStreaming();
deactivateDevice();
@ -1080,7 +1077,7 @@ long WCMRPortAudioDevice::ASIOMessageHook (long selector, long WCUNUSEDPARAM(val
case kAsioResetRequest:
m_ResetRequested++;
std::cout << "\t\t\tWCMRPortAudioDevice::ASIOMessageHook -- kAsioResetRequest" << std::endl;
SetEvent(m_hResetFromDevRequestedEvent);
m_pMyManager->NotifyClient (WCMRAudioDeviceManagerClient::RequestReset);
break;
case kAsioResyncRequest: