Audio Handler

by Pokemonred200
A Basic Audio Handler for your games. Enjoy!
ID:1374369
 
Features:
Play, Pause, Mute, Resume, and otherwise Update Sounds based on a given ID.

var/audiohandler/audio = new(src) // The basics.
audio.addSound(sound('Shell City Dead Ahead.ogg'),"123")
audio.playSound("123") // Play the sound with the ID "123"

audio.pauseSound("123") // Pause the sound with the ID "123"

audio.resumeSound("123") // Resume the sound with the ID "123"

audio.setVolume("123",50) // Set the volume for the sound with the ID "123" at 50% of the OS volume.

etc.


see? It's simple! Further documentation will be posted in the future.