Skip to content

Commit 62bb7bb

Browse files
committed
native_midi_linux_alsa.c: fix build using old gcc.
1 parent bc9c365 commit 62bb7bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/codecs/native_midi/native_midi_linux_alsa.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ static int native_midi_player_thread(void *d)
572572
bool playback_finished = false;
573573
NativeMidiSong *song = d;
574574
MIDIEvent *event = song->evtlist;
575-
575+
int i;
576576
int queue = ALSA_snd_seq_alloc_named_queue(song->seq, "SDL_Mixer Playback");
577577
snd_seq_start_queue(song->seq, queue, NULL);
578578

@@ -756,7 +756,7 @@ static int native_midi_player_thread(void *d)
756756
/* Stop all audio */
757757
/* Some of these are bound to work */
758758
snd_seq_ev_set_direct(&evt);
759-
for (int i = 0; i < MIDI_CHANNELS; i++) {
759+
for (i = 0; i < MIDI_CHANNELS; i++) {
760760
snd_seq_ev_set_controller(&evt, i, MIDI_CTL_SUSTAIN, 0);
761761
ALSA_snd_seq_event_output_direct(song->seq, &evt);
762762
snd_seq_ev_set_controller(&evt, i, MIDI_CTL_ALL_NOTES_OFF, 0);

0 commit comments

Comments
 (0)