13
0

at least make it compile with mingw.

This commit is contained in:
Robin Gareus 2015-06-30 09:11:05 +02:00
parent f1aa1a0a11
commit 5ab0288c99
2 changed files with 7 additions and 1 deletions

View File

@ -749,8 +749,12 @@ WavesAudioBackend::_audio_device_callback (const float* input_buffer,
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;
#endif
_main_thread = pthread_self();
}

View File

@ -35,7 +35,9 @@
//**********************************************************************************************
WCMRNativeAudioNoneDevice::WCMRNativeAudioNoneDevice (WCMRAudioDeviceManager *pManager)
: WCMRNativeAudioDevice (pManager, false /*useMultiThreading*/)
#ifndef PTW32_VERSION
, m_SilenceThread(0)
#endif
#if defined (PLATFORM_WINDOWS)
, _waitableTimerForUsleep (CreateWaitableTimer(NULL, TRUE, NULL))
#endif