Possible fix for Jack MIDI crash on jack_get_buffer_size some are seeing.
git-svn-id: svn://localhost/ardour2/branches/midi@1780 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
a8da89d745
commit
acdfe9857a
@ -100,7 +100,7 @@ JACK_MidiPort::create_ports(PortRequest & req)
|
||||
assert(!_jack_input_port);
|
||||
assert(!_jack_output_port);
|
||||
|
||||
jack_nframes_t nframes = jack_get_buffer_size(_jack_client);
|
||||
//jack_nframes_t nframes = jack_get_buffer_size(_jack_client);
|
||||
|
||||
bool ret = true;
|
||||
|
||||
@ -108,8 +108,8 @@ JACK_MidiPort::create_ports(PortRequest & req)
|
||||
_jack_output_port = jack_port_register(_jack_client,
|
||||
string(req.tagname).append("_out").c_str(),
|
||||
JACK_DEFAULT_MIDI_TYPE, JackPortIsOutput, 0);
|
||||
jack_midi_clear_buffer(
|
||||
jack_port_get_buffer(_jack_output_port, nframes));
|
||||
//jack_midi_clear_buffer(
|
||||
// jack_port_get_buffer(_jack_output_port, nframes));
|
||||
ret = ret && (_jack_output_port != NULL);
|
||||
}
|
||||
|
||||
@ -117,8 +117,8 @@ JACK_MidiPort::create_ports(PortRequest & req)
|
||||
_jack_input_port = jack_port_register(_jack_client,
|
||||
string(req.tagname).append("_in").c_str(),
|
||||
JACK_DEFAULT_MIDI_TYPE, JackPortIsInput, 0);
|
||||
jack_midi_clear_buffer(
|
||||
jack_port_get_buffer(_jack_input_port, nframes));
|
||||
//jack_midi_clear_buffer(
|
||||
// jack_port_get_buffer(_jack_input_port, nframes));
|
||||
ret = ret && (_jack_input_port != NULL);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user