SWORD2: Initial work on StreamCompMusic()
|Reported by:||eriktorbjorn||Owned by:||SF/khalek|
|Game:||Broken Sword 2|
Since I don't have the Broken Sword 2 data files on this computer, I dare not apply this one myself.
The patch contains some initial work on the StreamCompMusic() function. For it to have any chance at all of working, I had to change the mixer initialization a bit.
Unfortunately it won't actually play something until we have support for playing ADPCM-compressed WAV-data. We may be able to borrow code for this from SDL.
Also, we need to implement FxServer() to get more than the first few seconds of music.
And there's no volume control or panning.
But it's a start. I'm hoping some of the missing functionality will eventually be added to the mixer so we won't have to tie it to the Broken Sword games, but that's open to discussion.
Ticket imported from: #781530. Ticket imported from: patches/371.