From d7e1d486d0930206d47dc9bd2aaef4a0f20bda3d Mon Sep 17 00:00:00 2001 From: cancel Date: Tue, 21 Jan 2020 18:59:30 +0900 Subject: [PATCH] Cleanup --- tui_main.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/tui_main.c b/tui_main.c index 54f60ee..913040b 100644 --- a/tui_main.c +++ b/tui_main.c @@ -969,19 +969,14 @@ send_midi_chan_msg(Oosc_dev *oosc_dev, Midi_mode const *midi_mode, case Midi_mode_type_osc_bidule: { if (!oosc_dev) break; // not sure if needed - I32 ints[3]; - ints[0] = (type << 4) | chan; // status - ints[1] = byte1; - ints[2] = byte2; - oosc_send_int32s(oosc_dev, midi_mode->osc_bidule.path, ints, - ORCA_ARRAY_COUNTOF(ints)); + oosc_send_int32s(oosc_dev, midi_mode->osc_bidule.path, + (int[]){type << 4 | chan, byte1, byte2}, 3); break; } #ifdef FEAT_PORTMIDI case Midi_mode_type_portmidi: { - int istatus = (type << 4) | chan; PmError pme = Pm_WriteShort(midi_mode->portmidi.stream, 0, - Pm_Message(istatus, byte1, byte2)); + Pm_Message(type << 4 | chan, byte1, byte2)); (void)pme; break; }