Opened 21 years ago

Closed 21 years ago

Last modified 6 years ago

#8266 closed patch

SWORD2: Initial work on StreamCompMusic()

Reported by: eriktorbjorn Owned by: SF/khalek
Priority: normal Component: Engine: Sword2
Version: Keywords:
Cc: Game: Broken Sword 2

Description

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.

Attachments (1)

bs2_stream_comp_music.diff (8.9 KB ) - added by eriktorbjorn 21 years ago.
Patch against a July 31 CVS snapshot

Download all attachments as: .zip

Change History (5)

by eriktorbjorn, 21 years ago

Attachment: bs2_stream_comp_music.diff added

Patch against a July 31 CVS snapshot

comment:1 by eriktorbjorn, 21 years ago

Owner: set to SF/khalek

comment:2 by SF/khalek, 21 years ago

applied

the demo for bs2 can be found here: http://ftp.se.kde.org/pub/pc/games/pcgameworld/demos/bs2-demo.zip

and on fileplanet and a few other places...

comment:3 by SF/khalek, 21 years ago

Status: newclosed

comment:4 by digitall, 6 years ago

Component: Engine: Sword2
Game: Broken Sword 2
Note: See TracTickets for help on using tickets.