resetSpatialPosition
resetSpatialPosition(id?: string): void;
Reset the spatial position of a sound by its ID. If no ID is provided, resets all spatial positions.
| Parameter | Type | Description |
|---|---|---|
id | string (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();