diff options
author | Robin Gareus <robin@gareus.org> | 2015-08-03 22:53:53 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-08-03 22:53:53 +0200 |
commit | c6a02503b4f05f8b52e553bd24e8b782670c74f3 (patch) | |
tree | 75a0991bc8567a79e9d192ec41bf58769e24d266 | |
parent | 9cabc1bb9a866336c6709afbcd0063b3d4f49855 (diff) |
Windows XP compat
-rw-r--r-- | libs/backends/portaudio/portaudio_backend.cc | 4 | ||||
-rw-r--r-- | libs/backends/portaudio/winmmemidi_input_device.cc | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/libs/backends/portaudio/portaudio_backend.cc b/libs/backends/portaudio/portaudio_backend.cc index 4031368cf7..fef0984750 100644 --- a/libs/backends/portaudio/portaudio_backend.cc +++ b/libs/backends/portaudio/portaudio_backend.cc @@ -663,7 +663,7 @@ PortAudioBackend::portaudio_process_thread (void *arg) mmcss::set_thread_priority (task_handle, mmcss::AVRT_PRIORITY_NORMAL); #endif - DWORD tid = GetThreadId (GetCurrentThread ()); + DWORD tid = GetCurrentThreadId (); DEBUG_THREADS (string_compose ("Process Thread Child ID: %1\n", tid)); f (); @@ -1350,7 +1350,7 @@ PortAudioBackend::main_process_thread () mmcss::set_thread_priority (task_handle, mmcss::AVRT_PRIORITY_NORMAL); #endif - DWORD tid = GetThreadId (GetCurrentThread ()); + DWORD tid = GetCurrentThreadId (); DEBUG_THREADS (string_compose ("Process Thread Master ID: %1\n", tid)); while (_run) { diff --git a/libs/backends/portaudio/winmmemidi_input_device.cc b/libs/backends/portaudio/winmmemidi_input_device.cc index 3b52bcefd2..594cf30b4b 100644 --- a/libs/backends/portaudio/winmmemidi_input_device.cc +++ b/libs/backends/portaudio/winmmemidi_input_device.cc @@ -182,6 +182,7 @@ WinMMEMidiInputDevice::winmm_input_callback(HMIDIIN handle, static HANDLE input_thread = GetCurrentThread (); static bool priority_boosted = false; +#if 0 // GetThreadId() is Vista or later only. if (input_thread != GetCurrentThread ()) { DWORD otid = GetThreadId (input_thread); DWORD ntid = GetThreadId (GetCurrentThread ()); @@ -191,6 +192,7 @@ WinMMEMidiInputDevice::winmm_input_callback(HMIDIIN handle, DEBUG_THREADS (string_compose ( "WinMME input Thread ID Changed: was %1, now %2\n", otid, ntid)); } +#endif HANDLE task_handle; |