diff options
author | GZharun <grygoriiz@wavesglobal.com> | 2015-05-14 17:52:12 +0300 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-06-29 14:18:14 -0400 |
commit | 51d2804535b7bab8dbd96da8c8ae02d65c9347c1 (patch) | |
tree | 70e7dfcd88e764d3e8a5fbd6761a28ed3ec266e7 /libs/backends/wavesaudio/wavesapi | |
parent | 5d4f1c3419d3bab12502692c5590060f4faef1bc (diff) |
Waves Backend MERGED from Tracks
[To be reviewed by] Paul Davis
Diffstat (limited to 'libs/backends/wavesaudio/wavesapi')
7 files changed, 9 insertions, 12 deletions
diff --git a/libs/backends/wavesaudio/wavesapi/BasicTypes/WUDefines.h b/libs/backends/wavesaudio/wavesapi/BasicTypes/WUDefines.h index 3bfb1d7805..1279b33905 100644 --- a/libs/backends/wavesaudio/wavesapi/BasicTypes/WUDefines.h +++ b/libs/backends/wavesaudio/wavesapi/BasicTypes/WUDefines.h @@ -63,7 +63,7 @@ #define WIN_ONLY(__Something_only_for_windows__) #define MAC_ONLY(__Something_only_for_mac__) __Something_only_for_mac__ - #if defined(i386) || defined(__i386) || defined(__i386__) || defined (__ppc__) + #if defined(i386) || defined(__i386) || defined(__i386__) #define kNumArchBits 32 #endif #if defined(__x86_64) || defined(__x86_64__) diff --git a/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRAudioDeviceManager.cpp b/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRAudioDeviceManager.cpp index 1b18fc3cfa..138810f55f 100644 --- a/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRAudioDeviceManager.cpp +++ b/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRAudioDeviceManager.cpp @@ -366,9 +366,8 @@ WTErr WCMRAudioDevice::ResetDevice () if (err == eNoErr && wasActive) err = SetActive(true); - if (err == eNoErr && wasStreaming) { - err = SetStreaming(true); - } + if (err == eNoErr && wasStreaming) + SetStreaming(true); return err; } diff --git a/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRAudioDeviceManager.h b/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRAudioDeviceManager.h index 818ea717fd..9d7800970f 100644 --- a/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRAudioDeviceManager.h +++ b/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRAudioDeviceManager.h @@ -57,6 +57,7 @@ struct DeviceInfo DeviceID m_DeviceId; std::string m_DeviceName; std::vector<int> m_AvailableSampleRates; + std::vector<int> m_AvailableBufferSizes; unsigned int m_MaxInputChannels; unsigned int m_MaxOutputChannels; diff --git a/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRCoreAudioDeviceManager.cpp b/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRCoreAudioDeviceManager.cpp index 003bbf5488..f7f05d7f45 100644 --- a/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRCoreAudioDeviceManager.cpp +++ b/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRCoreAudioDeviceManager.cpp @@ -39,7 +39,7 @@ static const int gAllBufferSizes[] = ///< The default SR. static const int DEFAULT_SR = 44100; ///< The default buffer size. -static const int DEFAULT_BUFFERSIZE = 128; +static const int DEFAULT_BUFFERSIZE = 1024; static const int NONE_DEVICE_ID = -1; @@ -2946,7 +2946,6 @@ WTErr WCMRCoreAudioDeviceManager::updateDeviceListImpl() if (eNoErr != err) { std::cout << "API::PortAudioDeviceManager::updateDeviceListImpl: Device list update error: "<< err << std::endl; - return err; } if (m_CurrentDevice) diff --git a/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRCoreAudioDeviceManager.h b/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRCoreAudioDeviceManager.h index cd4797a000..8bbd7d8eff 100644 --- a/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRCoreAudioDeviceManager.h +++ b/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRCoreAudioDeviceManager.h @@ -168,8 +168,7 @@ protected: static OSStatus StaticPropertyChangeProc (AudioDeviceID inDevice, UInt32 inChannel, Boolean isInput, AudioDevicePropertyID inPropertyID, void *inClientData); void PropertyChangeProc (AudioDevicePropertyID inPropertyID); - - void resetAudioDevice(); + private: }; diff --git a/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRNativeAudio.cpp b/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRNativeAudio.cpp index 935689aafe..f3565e2546 100644 --- a/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRNativeAudio.cpp +++ b/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRNativeAudio.cpp @@ -35,6 +35,7 @@ //********************************************************************************************** WCMRNativeAudioNoneDevice::WCMRNativeAudioNoneDevice (WCMRAudioDeviceManager *pManager) : WCMRNativeAudioDevice (pManager, false /*useMultiThreading*/) + , m_SilenceThread(0) #if defined (PLATFORM_WINDOWS) , _waitableTimerForUsleep (CreateWaitableTimer(NULL, TRUE, NULL)) #endif diff --git a/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRPortAudioDeviceManager.cpp b/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRPortAudioDeviceManager.cpp index a476f9a697..35ac18c044 100644 --- a/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRPortAudioDeviceManager.cpp +++ b/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRPortAudioDeviceManager.cpp @@ -1044,8 +1044,7 @@ void WCMRPortAudioDevice::resetDevice (bool callerIsWaiting /*=false*/ ) // Resume streaming if the device was streaming before if(wasStreaming && m_lastErr == eNoErr && m_ConnectionStatus == DeviceAvailable) { - // Notify the Application to prepare for the stream start - m_pMyManager->NotifyClient (WCMRAudioDeviceManagerClient::DeviceStartsStreaming); + // start streaming startStreaming(); } } else { @@ -1077,7 +1076,6 @@ long WCMRPortAudioDevice::ASIOMessageHook (long selector, long WCUNUSEDPARAM(val case kAsioResyncRequest: m_ResyncRequested++; std::cout << "\t\t\tWCMRPortAudioDevice::ASIOMessageHook -- kAsioResyncRequest" << std::endl; - m_pMyManager->NotifyClient (WCMRAudioDeviceManagerClient::RequestReset); break; case kAsioLatenciesChanged: @@ -1099,8 +1097,8 @@ long WCMRPortAudioDevice::ASIOMessageHook (long selector, long WCUNUSEDPARAM(val break; case kAsioResetRequest: - m_ResetRequested++; std::cout << "\t\t\tWCMRPortAudioDevice::ASIOMessageHook -- kAsioResetRequest" << std::endl; + m_ResetRequested++; m_pMyManager->NotifyClient (WCMRAudioDeviceManagerClient::RequestReset); break; |