Skip to main content

AudioManager

class AudioManager {
addSound(sound: SoundItem): Promise<boolean>;

removeSound(soundName: string): void;

createSound(
soundName: string,
options?: SoundOptions,
withId?: string,
): SoundManager;

createPlayerSound(
player: string | PlayerManager,
soundName: string,
options?: SoundOptions,
withId?: string,
): SoundManager;

createObjectSound(
object: string | ObjectManager,
soundName: string,
options?: SoundOptions,
withId?: string,
): SoundManager;

playSound(
soundName: string,
options?: SoundOptions,
withId?: string,
): SoundManager;

playSoundAtPosition(
soundName: string,
position: Vector3Array | Vector3,
options?: SoundOptions,
withId?: string,
): SoundManager;
}