13
0

DummyAudioBackend: prepare configurable number of midi ports

This commit is contained in:
Robin Gareus 2014-05-15 01:18:00 +02:00
parent 4c2f1489f4
commit cf8399c1c1
2 changed files with 7 additions and 2 deletions

View File

@ -38,6 +38,8 @@ DummyAudioBackend::DummyAudioBackend (AudioEngine& e, AudioBackendInfo& info)
, _dsp_load (0) , _dsp_load (0)
, _n_inputs (0) , _n_inputs (0)
, _n_outputs (0) , _n_outputs (0)
, _n_midi_inputs (0)
, _n_midi_outputs (0)
, _systemic_input_latency (0) , _systemic_input_latency (0)
, _systemic_output_latency (0) , _systemic_output_latency (0)
, _processed_samples (0) , _processed_samples (0)
@ -610,8 +612,8 @@ DummyAudioBackend::register_system_ports()
const int a_ins = _n_inputs > 0 ? _n_inputs : 8; const int a_ins = _n_inputs > 0 ? _n_inputs : 8;
const int a_out = _n_outputs > 0 ? _n_outputs : 8; const int a_out = _n_outputs > 0 ? _n_outputs : 8;
const int m_ins = 2; // TODO const int m_ins = _n_midi_inputs > 0 ? _n_midi_inputs : 2;
const int m_out = 2; const int m_out = _n_midi_outputs > 0 ? _n_midi_outputs : 2;
/* audio ports */ /* audio ports */
lr.min = lr.max = _samples_per_period + _systemic_input_latency; lr.min = lr.max = _samples_per_period + _systemic_input_latency;

View File

@ -282,6 +282,9 @@ class DummyAudioBackend : public AudioBackend {
uint32_t _n_inputs; uint32_t _n_inputs;
uint32_t _n_outputs; uint32_t _n_outputs;
uint32_t _n_midi_inputs;
uint32_t _n_midi_outputs;
uint32_t _systemic_input_latency; uint32_t _systemic_input_latency;
uint32_t _systemic_output_latency; uint32_t _systemic_output_latency;