File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
ktmidi-jvm-desktop/src/jvmMain/kotlin/dev/atsushieno/ktmidi Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -181,12 +181,12 @@ class LibreMidiAccess(private val api: Int) : MidiAccess() {
181
181
private var nextVirtualPortIndex = 0
182
182
override suspend fun createVirtualInputSender (context : PortCreatorContext ): MidiOutput {
183
183
val midiConfig = libremidi_midi_configuration().also {
184
- it.port_name(BytePointer (context.portName))
185
184
checkReturn { library.libremidi_midi_configuration_init(it) }
185
+ it.port_name(BytePointer (context.portName))
186
186
it.virtual_port(true )
187
187
}
188
188
val midiOut = libremidi_midi_out_handle().also {
189
- // checkReturn { library.libremidi_midi_out_new(midiConfig, apiConfig, it) }
189
+ checkReturn { library.libremidi_midi_out_new(midiConfig, apiConfig, it) }
190
190
}
191
191
val idName = " VIn_${nextVirtualPortIndex++ } "
192
192
val portDetails = LibreMidiPortDetails (this , idName, context.portName)
You can’t perform that action at this time.
0 commit comments