> Nekoplay

pan

audio.pan()

Moves the sound to the left (-1), center (0), or right (1).

audio.pan(audio, Panning Value)

audio HtmlAudioElement

Audio object created with audio.newAudio(path). This object is used to control playback, volume, position, etc.

Panning Value Number

Controls the sound's position in the stereo space. Ranges from -1 (left) to 1 (right), with 0 as center.