problem with sound after upgrade to 1.5.0

hi,

after upgrading to 1.5.0 my racing game sounds don’t work any longer.

i get these errors:
java.lang.IllegalArgumentException: Unsupported control type: Sample Rate

i use javax.sound.sampled.Clips’s in an applet. the control is used to create pitched/bended engine sounds.

does anyone know a solution that works with 1.4.x and 1.5.x?

does really no one know a solution to that?

ok, maybe someone knows how to force a specific runtime environment version in the or tag?

Have you looked at the [1.5.0]sampled stuff isn’t working anymore thread? You should as it is on the first page.

yes i have. the problem isn’t that i don’t hear my sounds anymore. the problem is that i get an exception when i try to manipulate the sound’s sample rate. this isn’t covered in the thread you mentioned.

here a few details:


// initialize and start looping
this.engineSoundControl = (FloatControl) engineSound.getControl(FloatControl.Type.SAMPLE_RATE);
this.engineSoundControl.setValue(10000);
this.engineSound.setFramePosition(0);
this.engineSound.loop(Clip.LOOP_CONTINUOUSLY);

// .....

// change pitch
float factor = speed / speedMaxForward;
this.engineSoundControl.setValue(10000 + 34100 * factor);

this worked with 1.4.2 but not with 1.5.0.

any ideas why?