Skip to main content

resetSpatialPosition

resetSpatialPosition(id?: string): void;

Reset the spatial position of a sound by its ID. If no ID is provided, resets all spatial positions.

ParameterTypeDescription
idstring (optional)ID of the sound, or omit to reset all spatial positions

Example

// Reset spatial position for a specific sound
soundManager.resetSpatialPosition('helicopter');

// Reset all spatial positions
soundManager.resetSpatialPosition();