Hi,

I'm having a problem with the Series 40 phones, 7210 & 5100 so far.

The following code prdouces a global root overflow, I have tried this code outside of a thread to further narrow it down.
public void playSound(int freq, int dur, int volume){
new Thread(){
public void run(){
Sound snd = new Sound(freq, dur);
if(volume != 0)
snd.setGain(volume);
snd.play(1);

}
}.start();
}

Can anyone suggest a work around or a better way of doing it.

It's in a thread to avoid the game pausing while the sound is being played