m14t/sots — Issue #394: Need to implement better sound logic
Author: gabehayes
Created: 2012-01-24 00:00:52+00:00
State: open

We need to update how the flash loads / plays sounds in SOTS. This needs to be very similar to the way OHPS worked.

1) There needs to be a `playSound` method that accepts two parameters:
- *url*: The URL of the mp3 file to play
- *play_count*: The number of times to loop the audio, if 0, loop indefinitely

2) We need to have a `stopSound` method that stops the audio and kills the associated channel.

3) We need to have a `volume` method
- In the case of SOTS, I think its okay if this method sets the volume for all channels.

Something important to note here is that each sound must be played on its own channel. For instance, if the background ambience noise is playing, and I call a new sound for a notification displaying, the background sound should continue to play seamlessly without interruption.