Configuration for a sound effect or music track.
const soundConfig: SoundConfig = { src: ['/audio/explosion.mp3', '/audio/explosion.ogg'], volume: 0.7, loop: false, rate: 1.0,}; Copy
const soundConfig: SoundConfig = { src: ['/audio/explosion.mp3', '/audio/explosion.ogg'], volume: 0.7, loop: false, rate: 1.0,};
Optional
Configuration for a sound effect or music track.
Example