Now MIDI decoder will stop playing if init/startup fails, rather than attempting to play with no SoundFonts loaded.
This commit is contained in:
parent
4c0e43863f
commit
026380fe40
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue