//---------------------------------------------------------------------------------- // // Copyright (c) 2008 Waves Audio Ltd. All rights reserved. // //! \file WCMRNativeAudio.h //! //! WCMRNativeAudio and related class declarations //! //---------------------------------------------------------------------------------*/ #ifndef __WCMRNativeAudio_h_ #define __WCMRNativeAudio_h_ #if defined(_WINDOWS) #include "windows.h" #endif #include "pthread.h" #include "WCRefManager.h" #include "WCMRAudioDeviceManager.h" class WCMRNativeAudioDevice; //forward class WCMRNativeAudioDevice : public WCMRAudioDevice { public: WCMRNativeAudioDevice (WCMRAudioDeviceManager *pManager, bool useMultithreading = true, bool bNoCopy = false) : WCMRAudioDevice (pManager) , m_UseMultithreading (useMultithreading) , m_bNoCopyAudioBuffer(bNoCopy) {} virtual ~WCMRNativeAudioDevice () {} protected: bool m_UseMultithreading; bool m_bNoCopyAudioBuffer; ///< This flag determines whether the audio callback performs a copy of audio, or the source/sink perform the copy. It should be true to let source/sink do the copies. }; //! A dummy device to allow apps to choose "None" in case no real device connection is required. class WCMRNativeAudioNoneDevice : public WCMRNativeAudioDevice { public: WCMRNativeAudioNoneDevice (WCMRAudioDeviceManager *pManager); virtual ~WCMRNativeAudioNoneDevice (); virtual WTErr SetActive (bool newState);///