Browse Source

Exit if JACK set up fails

master
Peter Nelson 12 years ago
parent
commit
e080007b4f
  1. 2
      cvin.cpp
  2. 2
      cvout.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);

2
cvout.cpp

@ -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…
Cancel
Save