Exit if JACK set up fails
parent
b7c28f92fc
commit
e080007b4f
2
cvin.cpp
2
cvin.cpp
|
@ -99,7 +99,7 @@ void CVIn::start()
|
|||
m_ports = new jack_port_t *[m_mapping_list.size()];
|
||||
m_buffers = new sample_t *[m_mapping_list.size()];
|
||||
|
||||
open(m_config_name.empty() ? "m2cv_in" : m_config_name.c_str());
|
||||
if (!open(m_config_name.empty() ? "m2cv_in" : m_config_name.c_str())) exit(EXIT_FAILURE);
|
||||
|
||||
m_midi_out = port_register("midi_out", JACK_DEFAULT_MIDI_TYPE, JackPortIsOutput, 0);
|
||||
|
||||
|
|
|
@ -125,7 +125,7 @@ void CVOut::start()
|
|||
m_ports = new jack_port_t *[m_mapping_list.size()];
|
||||
m_buffers = new sample_t *[m_mapping_list.size()];
|
||||
|
||||
open(m_config_name.empty() ? "m2cv_out" : m_config_name.c_str());
|
||||
if (!open(m_config_name.empty() ? "m2cv_out" : m_config_name.c_str())) exit(EXIT_FAILURE);
|
||||
|
||||
m_midi_in = port_register("midi_in", JACK_DEFAULT_MIDI_TYPE, JackPortIsInput, 0);
|
||||
|
||||
|
|
Loading…
Reference in New Issue