Hi all

I programmed a game for series 60 and used wav files. now i want to port it to series 40. problem is that wav is supportedo on series 40. i thin MIDI is supported. now how to use the same sounds in series 40. how can i convert it to MIDI and use it there

THis is the code on 7650. what changes should me made for midi

tune = this.getClass().getResourceAsStream("/Dragon1/res/scn/punch1.wav");
buffer1 = new byte[3590];
tune.read(buffer1, 0, buffer1.length);
sound1 = new Sound(buffer1, Sound.FORMAT_WAV);
sound1.init(buffer1, Sound.FORMAT_WAV);