Dopler Effect

Somebody knows how to apply dopler effect with and audio on jme?


I don't know how to realize doppler sounds, but I found a method which migth do this:

AudioSystem.getSystem().setDopplerFactor(float amount);

I also like to set doppler effect, but I haven't done so far.

The doppler effect is physicall only possible if the system knows the position of the ear relative to the sound source.

Is the doppler effect applied to every sound in a system or is it possible to apply it only on one vehicle for example?

AFAIK the doppler effect is automatic in OpenAL (and consequently, in jME). You can set the factor with the method mathias showed.