From 314236e1c646766c5d0c482c35705ba7286c3442 Mon Sep 17 00:00:00 2001 From: Greg Zharun Date: Tue, 3 Feb 2015 12:32:56 +0200 Subject: [PATCH] [Summary] Fixed bug with per thread pool error on Windows, when opening device control panel --- .../wavesapi/devicemanager/WCMRAudioDeviceManager.cpp | 6 ++++-- .../wavesapi/devicemanager/WCMRPortAudioDeviceManager.cpp | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRAudioDeviceManager.cpp b/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRAudioDeviceManager.cpp index cddc218df6..2c293f8b9a 100644 --- a/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRAudioDeviceManager.cpp +++ b/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRAudioDeviceManager.cpp @@ -360,8 +360,10 @@ WTErr WCMRAudioDevice::ResetDevice () if (err == eNoErr && wasActive) SetActive(true); - if (err == eNoErr && wasStreaming) - SetStreaming(true); + if (err == eNoErr && wasStreaming) { + m_pMyManager->NotifyClient (WCMRAudioDeviceManagerClient::DeviceStartsStreaming); + SetStreaming(true); + } return err; } diff --git a/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRPortAudioDeviceManager.cpp b/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRPortAudioDeviceManager.cpp index 9af7d98ebc..2c34c10e0e 100644 --- a/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRPortAudioDeviceManager.cpp +++ b/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRPortAudioDeviceManager.cpp @@ -1334,8 +1334,10 @@ WTErr WCMRPortAudioDevice::ShowConfigPanel (void *pParam) ResetDevice(); // restore previous state for the device SetActive(true); - if (wasStreaming) + if (wasStreaming) { + m_pMyManager->NotifyClient (WCMRAudioDeviceManagerClient::DeviceStartsStreaming); SetStreaming(true); + } } #else pParam = pParam;