Here is my problem. I'm porting my game to Nokia Series 40 MIDP 2.0 and using Nokia Series 40 MIDP 2.0 SDK
as far as i know there is the same behaviour as at Motorolas: you can only have one midi prefetched at the same time. But i can't get even one sound prefetched!!!
using prefetch() hangs midlet...
here is my code:
///// loading: temp is byte array with midi
midiPlayers[i] = Manager.createPlayer(new ByteArrayInputStream(temp,0,temp.length),"audio/sp-midi");
int current_midi = -1;
void playMidi(int indx)
if (!sound) return;
if (current_midi != indx)
if (current_midi != -1)
current_midi = indx;
// here is crush string
catch (Exception e)
p.s. loading from file (not from bytestring) has the same effect.