Click "Initialize AudioManager" to start the demo. This will load the provided sound files and demonstrate both HTMLAudioElement and AudioBuffer modes.
Not initialized
Demo Features:
HTMLAudioElement mode: Uses standard HTML5 audio elements for the music, rain, and coin sounds
AudioBuffer mode: Uses Web Audio API AudioBuffer for the generated sine wave
Different play modes: Trigger (play once), Retrigger (restart if playing), Hold (play while held)
Real-time controls: Volume, pan, pitch adjustment for all sounds
Fade effects: Fade in/out capabilities
Sound Controls
HTMLAudioElement sounds (loaded from audio files):
AudioBuffer sounds:
Effects:
Global Controls
These controls affect all sounds that don't belong to a specific group:
1.0
0.0
1.0
Sound Status
Open the browser console (F12) to see detailed logging of sound events (start, finish, etc.)
Groups:
No group: Music sound (AudioBuffer), Sine wave (AudioBuffer)
Ambient group: Rain sound (HTMLAudioElement)
Effects group: Coin sound (HTMLAudioElement)
Note: This demo demonstrates both HTMLAudioElement and AudioBuffer modes of the AudioManager.
The rain and coin sounds use HTMLAudioElement, while the music and sine wave use AudioBuffer.
Attribution:
R23-33-Raining from Inside.wav by craigsmith -- https://freesound.org/s/486266/ -- License: Creative Commons 0
music game, dun 1.wav by xtrgamr -- https://freesound.org/s/244532/ -- License: Attribution 4.0