Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tedfelix committed Oct 14, 2024
1 parent 48ab1b9 commit 8efd5f9
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/sound/AlsaDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -822,15 +822,14 @@ AlsaDriver::createMidiDevice(DeviceId deviceId,
.arg(m_outputPorts.size() + 1)
.arg(deviceName);

int outputPort = checkAlsaError(snd_seq_create_simple_port
(m_midiHandle,
portName.toLocal8Bit(),
SND_SEQ_PORT_CAP_READ |
SND_SEQ_PORT_CAP_SUBS_READ,
SND_SEQ_PORT_TYPE_APPLICATION |
SND_SEQ_PORT_TYPE_SOFTWARE |
SND_SEQ_PORT_TYPE_MIDI_GENERIC),
"createMidiDevice - can't create output port");
int outputPort = checkAlsaError(
snd_seq_create_simple_port(
m_midiHandle, // seq
portName.toLocal8Bit(), // name
SND_SEQ_PORT_CAP_READ | SND_SEQ_PORT_CAP_SUBS_READ, // caps
SND_SEQ_PORT_TYPE_APPLICATION | SND_SEQ_PORT_TYPE_SOFTWARE |
SND_SEQ_PORT_TYPE_MIDI_GENERIC), // type
"createMidiDevice - can't create output port");

if (outputPort >= 0) {

Expand Down

0 comments on commit 8efd5f9

Please sign in to comment.