mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-02-23 12:21:39 +00:00
parent
cdfe8d3d7d
commit
c30d519572
1 changed files with 2 additions and 2 deletions
|
@ -126,7 +126,7 @@ delete_fluid_midi_file (fluid_midi_file *mf)
|
||||||
/*
|
/*
|
||||||
* Gets the next byte in a MIDI file, taking into account previous running status.
|
* Gets the next byte in a MIDI file, taking into account previous running status.
|
||||||
*
|
*
|
||||||
* returns FLUID_FAILED if EOF or read error
|
* returns -1 if EOF or read error
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
fluid_midi_file_getc (fluid_midi_file *mf)
|
fluid_midi_file_getc (fluid_midi_file *mf)
|
||||||
|
@ -138,7 +138,7 @@ fluid_midi_file_getc (fluid_midi_file *mf)
|
||||||
} else {
|
} else {
|
||||||
if (mf->buf_pos >= mf->buf_len) {
|
if (mf->buf_pos >= mf->buf_len) {
|
||||||
mf->eof = TRUE;
|
mf->eof = TRUE;
|
||||||
return FLUID_FAILED;
|
return -1;
|
||||||
}
|
}
|
||||||
c = mf->buffer[mf->buf_pos++];
|
c = mf->buffer[mf->buf_pos++];
|
||||||
mf->trackpos++;
|
mf->trackpos++;
|
||||||
|
|
Loading…
Reference in a new issue