Explorar el Código

Fix USB MIDI song position callback

teensy4-core
PaulStoffregen hace 7 años
padre
commit
342daa61c5
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      teensy3/usb_midi.c

+ 2
- 1
teensy3/usb_midi.c Ver fichero

break; break;
case 0xF2: // usbMIDI.SongPosition case 0xF2: // usbMIDI.SongPosition
if (usb_midi_handleSongPosition) { if (usb_midi_handleSongPosition) {
(*usb_midi_handleSongPosition)(n >> 16);
(*usb_midi_handleSongPosition)(
((n >> 16) & 0x7F) | ((n >> 17) & 0x3F80));
} }
break; break;
case 0xF3: // usbMIDI.SongSelect case 0xF3: // usbMIDI.SongSelect

Cargando…
Cancelar
Guardar