at least make it compile with mingw.
This commit is contained in:
parent
f1aa1a0a11
commit
5ab0288c99
@ -749,8 +749,12 @@ WavesAudioBackend::_audio_device_callback (const float* input_buffer,
|
|||||||
AudioEngine::thread_init_callback (this);
|
AudioEngine::thread_init_callback (this);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_main_thread != pthread_self() ) {
|
if (pthread_equal (_main_thread, pthread_self()) != 0) {
|
||||||
|
#ifdef PTW32_VERSION
|
||||||
|
std::cerr << "Process thread ID has changed. Expected thread: " << _main_thread.p << " current thread: " << pthread_self().p << std::dec << " !" << std::endl;
|
||||||
|
#else
|
||||||
std::cerr << "Process thread ID has changed. Expected thread: " << _main_thread << " current thread: " << pthread_self() << std::dec << " !" << std::endl;
|
std::cerr << "Process thread ID has changed. Expected thread: " << _main_thread << " current thread: " << pthread_self() << std::dec << " !" << std::endl;
|
||||||
|
#endif
|
||||||
_main_thread = pthread_self();
|
_main_thread = pthread_self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +35,9 @@
|
|||||||
//**********************************************************************************************
|
//**********************************************************************************************
|
||||||
WCMRNativeAudioNoneDevice::WCMRNativeAudioNoneDevice (WCMRAudioDeviceManager *pManager)
|
WCMRNativeAudioNoneDevice::WCMRNativeAudioNoneDevice (WCMRAudioDeviceManager *pManager)
|
||||||
: WCMRNativeAudioDevice (pManager, false /*useMultiThreading*/)
|
: WCMRNativeAudioDevice (pManager, false /*useMultiThreading*/)
|
||||||
|
#ifndef PTW32_VERSION
|
||||||
, m_SilenceThread(0)
|
, m_SilenceThread(0)
|
||||||
|
#endif
|
||||||
#if defined (PLATFORM_WINDOWS)
|
#if defined (PLATFORM_WINDOWS)
|
||||||
, _waitableTimerForUsleep (CreateWaitableTimer(NULL, TRUE, NULL))
|
, _waitableTimerForUsleep (CreateWaitableTimer(NULL, TRUE, NULL))
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user