Now MIDI decoder will stop playing if init/startup fails, rather than attempting to play with no SoundFonts loaded.
parent
4c0e43863f
commit
026380fe40
|
@ -245,7 +245,8 @@ static OSType getOSType(const char * in_)
|
|||
soundFontsAssigned = YES;
|
||||
}
|
||||
|
||||
player->Play( (float *) buf, frames );
|
||||
if ( player->Play( (float *) buf, frames ) < frames )
|
||||
return -1;
|
||||
|
||||
if ( !repeatone && framesRead + frames > localFramesLength ) {
|
||||
if ( framesFade ) {
|
||||
|
|
Loading…
Reference in New Issue