Browse Source

Cleanup

master
cancel 5 years ago
parent
commit
289ee12e4b
  1. 7
      tui_main.c

7
tui_main.c

@ -1122,16 +1122,13 @@ void send_output_events(Oosc_dev *oosc_dev, Midi_mode const *midi_mode, Usz bpm,
if (!oosc_dev) if (!oosc_dev)
continue; continue;
Oevent_osc_ints const *eo = &e->osc_ints; Oevent_osc_ints const *eo = &e->osc_ints;
char path_buff[3]; char path[] = {'/', eo->glyph, '\0'};
path_buff[0] = '/';
path_buff[1] = eo->glyph;
path_buff[2] = 0;
I32 ints[ORCA_ARRAY_COUNTOF(eo->numbers)]; I32 ints[ORCA_ARRAY_COUNTOF(eo->numbers)];
Usz nnum = eo->count; Usz nnum = eo->count;
for (Usz inum = 0; inum < nnum; ++inum) { for (Usz inum = 0; inum < nnum; ++inum) {
ints[inum] = eo->numbers[inum]; ints[inum] = eo->numbers[inum];
} }
oosc_send_int32s(oosc_dev, path_buff, ints, nnum); oosc_send_int32s(oosc_dev, path, ints, nnum);
break; break;
} }
case Oevent_type_udp_string: { case Oevent_type_udp_string: {

Loading…
Cancel
Save