mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-22 13:17:17 +01:00
band-aid fix for wrong-thread-MIDI-writes
git-svn-id: svn://localhost/ardour2/branches/3.0@3154 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
4ca4a8e237
commit
d69f4e9e3d
1 changed files with 7 additions and 1 deletions
|
|
@ -21,11 +21,14 @@
|
|||
#include <cerrno>
|
||||
#include <cassert>
|
||||
|
||||
#include <pbd/error.h>
|
||||
|
||||
#include <midi++/types.h>
|
||||
#include <midi++/jack.h>
|
||||
|
||||
using namespace std;
|
||||
using namespace MIDI;
|
||||
using namespace PBD;
|
||||
|
||||
JACK_MidiPort::JACK_MidiPort(const XMLNode& node, jack_client_t* jack_client)
|
||||
: Port(node)
|
||||
|
|
@ -58,7 +61,10 @@ JACK_MidiPort::cycle_start (nframes_t nframes)
|
|||
int
|
||||
JACK_MidiPort::write(byte * msg, size_t msglen, timestamp_t timestamp)
|
||||
{
|
||||
assert(_currently_in_cycle);
|
||||
if (!_currently_in_cycle) {
|
||||
error << "JACK MIDI write ignored - not in cycle ... FIX ME PAUL!" << endmsg;
|
||||
return msglen;
|
||||
}
|
||||
assert(timestamp < _nframes_this_cycle);
|
||||
assert(_jack_output_port);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue