Fix crash on startup when MIDI files are resumed.

CQTexperiment
Christopher Snowhill 2016-11-29 16:00:18 -08:00
parent ebfcd03c5d
commit 590cf42521
1 changed files with 6 additions and 0 deletions

View File

@ -324,6 +324,12 @@ static OSType getOSType(const char * in_)
- (long)seek:(long)frame
{
if (!player) {
float temp[2];
if ([self readAudio:temp frames:1] < 1)
return -1;
}
player->Seek( frame );
framesRead = frame;