software audio mixer

A new custom software mixer, supports playing streams at any rate, which is needed to emulate the directsound SetFrequency effects (when a ride malfunctions and the music slows down and stops). The speex resampler is added for this. Currently samples can be played and their volumes and looping set on an arbitrary number of channels. Support for FLAC and other streaming formats can be added.
I think static variables in functions isn't as clear as defining them outside. I would personally move this to the top of mixer.cpp and optionally define it as a static variable of Mixer. Or you could otherwise use the singleton pattern for mixer and prevent more than one instance.