kyleconroy/hawkthorne-journey — pull request #117 by jhoff (2012-08-25 18:57:07+00:00)
Title: Audio Redux - Adds TEsound and wrappers

Performed lossless compression on all images
Converted hit.wav to hit.ogg
Removed deans-closet_2.png ( screenshot )
Removed 'endscreen' from loader.lua since it's not used anymore

------------------------------------------------------

The audio overhaul adds the following:

* now requires "local sound = require 'vendor/TEsound'" to the top of each file that needs sound
* addition of sound.playMusic and sound.playSfx
* no longer need to stop the music when you change gamestates ( a new music request will stop the current one )
* If you request music to be played and it's already playing, nothing happens. This means that the music doesn't restart between levels that have the same music ( like the studyroom and the hallway )
* TEsound allows independent volume control for each channel ( music and sfx in our case ) so we will be able to extend the options to control the two.
* Source caching - Instead of loading the sound into memory each time it's played, the references are loaded only once and cached for future requests.

It does not do the following:

* fix the freezing issue on OSX ( though it may have extended the amount of time it takes to occur )

I still want to do the following:

* generalize the audio requests so that we can say sound.playMusic( 'daybreak' ) instead of sound.playMusic( 'audio/daybreak.ogg' ). I wanted to discuss because I think we should organize the audio folder into music and sfx subfolders first.
* Extend the options screen to support independent volume control for music and sfx