Exemplo n.º 1
0
void MIDIOut::close(quint32 output)
{
    MIDIDevice* dev = device(output);
    if (dev != NULL)
        dev->open();
    else
        qWarning() << name() << "has no output number:" << output;
}
Exemplo n.º 2
0
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();
	}
Exemplo n.º 3
0
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();
	}