void MIDIOut::close(quint32 output) { MIDIDevice* dev = device(output); if (dev != NULL) dev->open(); else qWarning() << name() << "has no output number:" << output; }
void MIDIInput::open(quint32 input) { MIDIDevice* dev = device(input); if (dev != NULL) { connect(dev, SIGNAL(valueChanged(MIDIDevice*,quint32,uchar)), this, SLOT(slotDeviceValueChanged(MIDIDevice*, quint32, uchar))); dev->open(); }
void MIDIInput::open(t_input input) { MIDIDevice* dev = device(input); if (dev != NULL) { connect(dev, SIGNAL(valueChanged(MIDIDevice*, t_input_channel, t_input_value)), this, SLOT(slotDeviceValueChanged(MIDIDevice*, t_input_channel, t_input_value))); dev->open(); }