AudioModule Module

The AudioModule class enables sound effects.

Usage

const Audio = require('Audio');

Properties

This class exposes no properties.

Methods

MethodDescription

play

play(audioSource: AudioSource): void

Creates a new playing instance of the sound associated with this AudioSource.

stopAll

stopAll(audioSource: AudioSource): void

Stops all playing instances of this AudioSource.