Sound Listener - Hangman/TuningFork GitHub Wiki

The listener determines the sound output from spatial sound sources by its position, orientation and speed.

Get The Listener

SoundListener listener = audio.getListener();

Update The Listener

These values can, but do not have to be set.
In a 3D game in first person view, the listener should always contain the values of the camera, so there are separate convenience methods for this.

listener.setPosition(position);
listener.setOrientation(at, up);
listener.setSpeed(speed);

// you can also method-chain it:
listener.setPosition(position).setOrientation(at, up).setSpeed(speed);

// convenience methods when using a libGDX Camera
listener.setPosition(camera);
listener.setOrientation(camera);

The speed attribute is only used for the Doppler effect, if you don't want that, just leave it alone.