diff --git a/Plugins/MIDI/MIDI/MIDIDecoder.mm b/Plugins/MIDI/MIDI/MIDIDecoder.mm index 9135f9e4e..34207f815 100755 --- a/Plugins/MIDI/MIDI/MIDIDecoder.mm +++ b/Plugins/MIDI/MIDI/MIDIDecoder.mm @@ -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;