I have problems reproducing wav format on a 7650.
It seems that the WAV file is played, but not very loud (i have to put my ear very close to the phone).
The sound is well recorded. (quiet loud)
Do I have to set something to make it louder?
The code i'm using to play it is:
Sound ss;
byte[] data;
int n = 0;
InputStream is = this.getClass().getResourceAsStream("/sound/snd01.wav");
try{
// this is beacuse i use 2 bytes before the wav
// that tell me the lenth in bytes of the sound
n = is.read();
n = n | is.read() << 8;
data = new byte[n];
is.read(data, 0, n);
} catch(IOException e){}
ss = new Sound(data, Sound.FORMAT_WAV);
ss.setGain(255);
ss.play(1);

Reply With Quote

