Audio Handler

by Pokemonred200
A Basic Audio Handler for your games. Enjoy! [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Pokemonred200.audiohandler##version=4

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:

byond://Pokemonred200.audiohandler##version=4

95 downloads
Version 1.3
Date added: Sep 10 2013
Last updated: Nov 29 2015
1 fan
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.