summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/async_midi_port.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-11-23 23:56:39 +0100
committerRobin Gareus <robin@gareus.org>2014-11-23 23:57:56 +0100
commitcd91fa0046e52e34d583b29e49c2452a935a9ae5 (patch)
treeba26b78ee4c318f814ab0dcf1ce8c89f56a5e649 /libs/ardour/ardour/async_midi_port.h
parent1b6cbf743bb497915afc0b3bb11f06311d0a08fb (diff)
hotfix windows-compilation (unfinished bfe49540b9)
..at least it compiles and starts. Mackie support etc is probably still broken.
Diffstat (limited to 'libs/ardour/ardour/async_midi_port.h')
-rw-r--r--libs/ardour/ardour/async_midi_port.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/ardour/ardour/async_midi_port.h b/libs/ardour/ardour/async_midi_port.h
index 373d6b7668..d822081bd3 100644
--- a/libs/ardour/ardour/async_midi_port.h
+++ b/libs/ardour/ardour/async_midi_port.h
@@ -62,13 +62,19 @@ class LIBARDOUR_API AsyncMIDIPort : public ARDOUR::MidiPort, public MIDI::Port {
/* clears async request communication channel */
void clear () {
+#ifndef PLATFORM_WINDOWS
return xthread.drain ();
+#endif
}
/* Not selectable; use ios() */
int selectable() const { return -1; }
Glib::RefPtr<Glib::IOSource> ios() {
+#ifndef PLATFORM_WINDOWS
return xthread.ios();
+#else
+ return Glib::RefPtr<Glib::IOSource>(0);
+#endif
}
void set_timer (boost::function<framecnt_t (void)>&);
@@ -84,7 +90,9 @@ class LIBARDOUR_API AsyncMIDIPort : public ARDOUR::MidiPort, public MIDI::Port {
RingBuffer< Evoral::Event<double> > output_fifo;
Evoral::EventRingBuffer<MIDI::timestamp_t> input_fifo;
Glib::Threads::Mutex output_fifo_lock;
+#ifndef PLATFORM_WINDOWS
CrossThreadChannel xthread;
+#endif
int create_port ();