mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-27 00:47:43 +01:00
[Commit] Compilation error fix
This commit is contained in:
parent
64df45fd22
commit
753096efc5
1 changed files with 9 additions and 2 deletions
|
|
@ -62,13 +62,18 @@ class LIBARDOUR_API AsyncMIDIPort : public ARDOUR::MidiPort, public MIDI::Port {
|
|||
|
||||
/* clears async request communication channel */
|
||||
void clear () {
|
||||
return xthread.drain ();
|
||||
#ifndef PLATFORM_WINDOWS
|
||||
xthread.drain ();
|
||||
#endif
|
||||
}
|
||||
/* Not selectable; use ios() */
|
||||
int selectable() const { return -1; }
|
||||
|
||||
Glib::RefPtr<Glib::IOSource> ios() {
|
||||
#ifndef PLATFORM_WINDOWS
|
||||
return xthread.ios();
|
||||
#else
|
||||
Glib::RefPtr<Glib::IOSource>();
|
||||
#endif
|
||||
}
|
||||
void set_timer (boost::function<framecnt_t (void)>&);
|
||||
|
||||
|
|
@ -84,7 +89,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 ();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue