I am adding sound support to a MIDP1.0 game and I notice that every time I play a wav sound in my game loop it delays the current running thread and I basically get a screen repaint that is halting until the sound starts to play. This is a tiles based game and the pause is really hurting the game play. I am using the mmapi Player to play the wav sound. I thought that this api is suppose to be asynchronous.

Has anyone run into this problem before?

Should I create a seperate thread for handling the playing of sounds?

I am building this game for the Nokia platform so I could try using the sound player from the Nokia sdk.

any suggestions would be greatly appreicated.


Marty Jones