|
|
@ -982,7 +982,7 @@ AlsaDriver::createMidiDevice(AlsaPortDescription *port,
|
|
|
|
|
|
|
|
|
|
|
|
int outputPort = checkAlsaError(snd_seq_create_simple_port
|
|
|
|
int outputPort = checkAlsaError(snd_seq_create_simple_port
|
|
|
|
(m_midiHandle,
|
|
|
|
(m_midiHandle,
|
|
|
|
portName,
|
|
|
|
portName.ascii(),
|
|
|
|
SND_SEQ_PORT_CAP_READ |
|
|
|
|
SND_SEQ_PORT_CAP_READ |
|
|
|
|
SND_SEQ_PORT_CAP_SUBS_READ,
|
|
|
|
SND_SEQ_PORT_CAP_SUBS_READ,
|
|
|
|
SND_SEQ_PORT_TYPE_APPLICATION),
|
|
|
|
SND_SEQ_PORT_TYPE_APPLICATION),
|
|
|
@ -990,7 +990,7 @@ AlsaDriver::createMidiDevice(AlsaPortDescription *port,
|
|
|
|
|
|
|
|
|
|
|
|
if (outputPort >= 0) {
|
|
|
|
if (outputPort >= 0) {
|
|
|
|
|
|
|
|
|
|
|
|
std::cerr << "CREATED OUTPUT PORT " << outputPort << ":" << portName << " for device " << deviceId << std::endl;
|
|
|
|
std::cerr << "CREATED OUTPUT PORT " << outputPort << ":" << portName.ascii() << " for device " << deviceId << std::endl;
|
|
|
|
|
|
|
|
|
|
|
|
m_outputPorts[deviceId] = outputPort;
|
|
|
|
m_outputPorts[deviceId] = outputPort;
|
|
|
|
|
|
|
|
|
|
|
@ -1179,7 +1179,7 @@ AlsaDriver::renameDevice(DeviceId id, TQString name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
std::cerr << "Renamed " << m_client << ":" << i->second << " to " << name << std::endl;
|
|
|
|
std::cerr << "Renamed " << m_client << ":" << i->second << " to " << name.ascii() << std::endl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ClientPortPair
|
|
|
|
ClientPortPair
|
|
|
@ -1252,7 +1252,7 @@ void
|
|
|
|
AlsaDriver::setConnectionToDevice(MappedDevice &device, TQString connection)
|
|
|
|
AlsaDriver::setConnectionToDevice(MappedDevice &device, TQString connection)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ClientPortPair pair( -1, -1);
|
|
|
|
ClientPortPair pair( -1, -1);
|
|
|
|
if (connection && connection != "") {
|
|
|
|
if (!connection.isNull() && connection != "") {
|
|
|
|
pair = getPortByName(connection.ascii());
|
|
|
|
pair = getPortByName(connection.ascii());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
setConnectionToDevice(device, connection, pair);
|
|
|
|
setConnectionToDevice(device, connection, pair);
|
|
|
@ -1352,7 +1352,7 @@ AlsaDriver::setPlausibleConnection(DeviceId id, TQString idealConnection)
|
|
|
|
ClientPortPair port(getPortByName(idealConnection.ascii()));
|
|
|
|
ClientPortPair port(getPortByName(idealConnection.ascii()));
|
|
|
|
|
|
|
|
|
|
|
|
audit << "AlsaDriver::setPlausibleConnection: connection like "
|
|
|
|
audit << "AlsaDriver::setPlausibleConnection: connection like "
|
|
|
|
<< idealConnection << " requested for device " << id << std::endl;
|
|
|
|
<< idealConnection.ascii() << " requested for device " << id << std::endl;
|
|
|
|
|
|
|
|
|
|
|
|
if (port.first != -1 && port.second != -1) {
|
|
|
|
if (port.first != -1 && port.second != -1) {
|
|
|
|
|
|
|
|
|
|
|
@ -1610,7 +1610,7 @@ AlsaDriver::setCurrentTimer(TQString timer)
|
|
|
|
if (timer == getCurrentTimer())
|
|
|
|
if (timer == getCurrentTimer())
|
|
|
|
return ;
|
|
|
|
return ;
|
|
|
|
|
|
|
|
|
|
|
|
std::cerr << "AlsaDriver::setCurrentTimer(" << timer << ")" << std::endl;
|
|
|
|
std::cerr << "AlsaDriver::setCurrentTimer(" << timer.ascii() << ")" << std::endl;
|
|
|
|
|
|
|
|
|
|
|
|
std::string name(timer.ascii());
|
|
|
|
std::string name(timer.ascii());
|
|
|
|
|
|
|
|
|
|
|
|