Just wondering if the upcoming release will support some type of audio compression of the Discworld I & II games?
I'm leaning more towards number 1 as I have that, but I'm assuming that they both used the same file formats..?
Discworld audio compression planned?
Moderator: ScummVM Team
- DrMcCoy
- ScummVM Developer
- Posts: 595
- Joined: Sat Dec 17, 2005 1:33 pm
- Location: Braunschweig, Germany
- Contact:
Re: Discworld audio compression planned?
No. Discworld 1 uses raw PCM data, while Discworld 2 compresses its sounds using an ADPCM codec.Who'sThere wrote:I'm assuming that they both used the same file formats..?
Anyway, there currently is a working (but not much tested) compression tool for both versions in the SVN repository.
The upcoming release will play these, yes.
-
- Posts: 13
- Joined: Mon May 12, 2008 9:54 am
Re: Discworld audio compression planned?
DrMcCoy wrote:I already wrote in other tinsel compression thread. Question now: has the tool run through tests since your last post? I mean do you see it as stable or should one wait until next release? I already compressed DW1 and DW2 successfully but at least with the compressed files from DW I got some messages like "WARNING: Unknown MIDI offset 620146!". So I am not sure if really everything got compressed successfully. Hope u can help.Who'sThere wrote:...
Anyway, there currently is a working (but not much tested) compression tool for both versions in the SVN repository.
The upcoming release will play these, yes.
Re: Discworld audio compression planned?
The sound files only contain sample data, no midi data. Are you sure that this warning happens only when using the compressed sample data files?MarkCoolio wrote:I already wrote in other tinsel compression thread. Question now: has the tool run through tests since your last post? I mean do you see it as stable or should one wait until next release? I already compressed DW1 and DW2 successfully but at least with the compressed files from DW I got some messages like "WARNING: Unknown MIDI offset 620146!". So I am not sure if really everything got compressed successfully. Hope u can help.
btw. a typo in the engine actually caused it to identify flac compressed data as being uncompressed. It's now fixed, so flac also works.
- eriktorbjorn
- ScummVM Developer
- Posts: 3559
- Joined: Mon Oct 31, 2005 7:39 am
Re: Discworld audio compression planned?
From what I can see, the engine tries to convert an offset into a data file (to where the music it wants to play begins) to a track number so that it can, optionally, play music from the ScummVM Music Enhancement Project. But in this case, it didn't recognize the offset. (The offsets are hard-coded in the Tinsel engine.)MarkCoolio wrote:I already compressed DW1 and DW2 successfully but at least with the compressed files from DW I got some messages like "WARNING: Unknown MIDI offset 620146!". So I am not sure if really everything got compressed successfully. Hope u can help.
I think the warning itself is pretty harmless. It should simply go on to play the MIDI version of the music instead. Assuming the music plays for you (i.e. the offset isn't caused by a corrupted file), I don't know what's wrong in this case. I guess there either isn't any enhanced version of that particular song, or the conversion from offset to track number is wrong for some versions of the game.
If it plays music depending on what sample is played (sample offset), then that would need to get fixed. Anyway such behaviour would only work on the English (uncompressed) version of the game, so it would not be good anyway. Perhaps one should have done it by using the sample index, because that doesn't change.
I don't know what you are calling "sample" here. Maybe you would want to explain that.jimi wrote:If it plays music depending on what sample is played (sample offset), then that would need to get fixed. Anyway such behaviour would only work on the English (uncompressed) version of the game, so it would not be good anyway. Perhaps one should have done it by using the sample index, because that doesn't change.
As I understand it the Tinsel (at least DW1) music playback works like this:
The game scripts (whatever) do pass a file offset to the function, which is used to play a MIDI track (MIDI is not sample based btw.). It takes that offset and looks at it in the datafiles containing the music data and plays back the MIDI data found there.
Now to get the DW enhanced music working there is code to compare the passed offset against a table, which contains plain offset values. If a matching offset is found the table index is used to decide which track of the enhanced music soundtrack should be played.
AFAIK there is no other way to achieve that. To support game versions with different offsets, one would need to add another table with all offsets used in that version. I guess the developer, who added that offset table did have a different game version than the one, which triggers this warning.
Of course the warning should be harmless, when you do not use the enhanced music soundtrack at all.