Convert some error output to debug output in PortaudioBackend
[ardour.git] / libs / backends / portaudio / winmmemidi_input_device.cc
index 3b52bcefd213c5b647e78092b0919aa36bbb97da..d7a0a6dbaa674e5db01d22bb42db0fae5d5dcf76 100644 (file)
@@ -37,6 +37,7 @@ namespace ARDOUR {
 
 WinMMEMidiInputDevice::WinMMEMidiInputDevice (int index)
        : m_handle(0)
+       , m_started(false)
        , m_midi_buffer(new RingBuffer<uint8_t>(MIDI_BUFFER_SIZE))
        , m_sysex_buffer(new uint8_t[SYSEX_BUFFER_SIZE])
 {
@@ -182,6 +183,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 +193,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;