Is there a 3rd party program that can open certain files?

General chat related to ScummVM, adventure gaming, and so on.

Moderator: ScummVM Team

Post Reply
greenbarron
Posts: 4
Joined: Tue Oct 13, 2009 3:45 pm

Is there a 3rd party program that can open certain files?

Post by greenbarron »

This (for now) is another Discworld related thread,

After scanning through the discworld folder that's installed on my C:\ drive, there's an SMP file (which i gather from research is an audio file) which my copy of Adobe Audition recognised, but it doesn't open it (why i don't know, but there you go, computers eh?)

I have read on the internet and seen on Ebay that there's a guy who uses the trueblueaussie pseudonym that sells a program that supposedly unlocks and exports the sounds from Discworld 1

Is there any other programs that exist that do this? or is it all wishful thinking?

Thanks in advance.
User avatar
eriktorbjorn
ScummVM Developer
Posts: 3561
Joined: Mon Oct 31, 2005 7:39 am

Post by eriktorbjorn »

There's a "compress_tinsel" tool for ScummVM. I don't know the status of it (I couldn't find any mention of it in the README), but assuming that it works then someone could take the source code for that and modify it so that it doesn't remove the individual sounds once it's done with them.

I don't know if there's any currently existing, user-friendly way to do it, though.
greenbarron
Posts: 4
Joined: Tue Oct 13, 2009 3:45 pm

Post by greenbarron »

So that prgram on Ebay isn't much use then?

if it helps it's called Rincewind's Sound Wizzard i maybe should have mentioned that in the original post. Sorry.
User avatar
maximus
Posts: 102
Joined: Sun Jan 06, 2008 4:17 pm
Location: Toronto, Ontario

Post by maximus »

greenbarron wrote:So that prgram on Ebay isn't much use then?

if it helps it's called Rincewind's Sound Wizzard i maybe should have mentioned that in the original post. Sorry.
I'm not sure why they're charging for that program, as it seems to be a pretty straight-forward utility.

Erik's right though, just take a look at compress_tinsel.cpp, and look at the "convertTinselADPCMSample" function. Of particular interest should be:

Code: Select all

// Append compressed data to output_smp
curFileHandle = fopen(TEMP_ENC, "rb");
fseek(curFileHandle, 0, SEEK_END);
copyLeft = ftell(curFileHandle);
fseek(curFileHandle, 0, SEEK_SET);
// Write size of compressed data
writeUint32LE(output_smp, copyLeft);
// Write actual data
while (copyLeft > 0) {
    doneRead = fread(buffer, 1, copyLeft > sizeof(buffer) ? sizeof(buffer) : copyLeft, curFileHandle);
    if &#40;doneRead <= 0&#41;
            break;
    copyLeft -= &#40;int&#41;doneRead;
    fwrite&#40;buffer, 1, doneRead, output_smp&#41;;
&#125;
fclose&#40;curFileHandle&#41;;
Just alter the logic there to spit out each encoded sample, as opposed to just having it appended to the SMP.
greenbarron
Posts: 4
Joined: Tue Oct 13, 2009 3:45 pm

Post by greenbarron »

I'm afraid that there's a n00b alert now.....

I'm a wee but lost with you both now, where for starts is he compress_tinsel.cpp tool? i've googled it but it's been fruitless.
maximus wrote:
I'm not sure why they're charging for that program, as it seems to be a pretty straight-forward utility.
So.... there would technically be another program that did this? if so what's it called?

Thanks in advance
User avatar
Graxer
Posts: 453
Joined: Sat Sep 13, 2008 2:24 pm
Location: Scotland

Post by Graxer »

greenbarron wrote:I'm afraid that there's a n00b alert now.....

I'm a wee but lost with you both now, where for starts is he compress_tinsel.cpp tool? i've googled it but it's been fruitless.
Go to the ScummVM download page and scroll down to the "1.0.0rc1 Tools" section. "compress_tinsel" should be included in that download.
User avatar
Longcat
Posts: 1061
Joined: Sat Sep 23, 2006 3:15 pm

Post by Longcat »

I think you guys are overestimating the original posters knowledge about programming just a wee bit guys :)

It doesn't seem like he knows what the word compile even means(no offense).
User avatar
maximus
Posts: 102
Joined: Sun Jan 06, 2008 4:17 pm
Location: Toronto, Ontario

Post by maximus »

Jonatan wrote:I think you guys are overestimating the original posters knowledge about programming just a wee bit guys :)

It doesn't seem like he knows what the word compile even means(no offense).
Sorry, wasn't trying to be a dick ;)

I don't have access to a windows system atm, and am assuming a linux binary wouldn't be of any use :P If I have a second at work I'll try to crank out a windows exe to do the proposed extraction (though I've got a feeling someone will beat me to this....)
greenbarron
Posts: 4
Joined: Tue Oct 13, 2009 3:45 pm

Post by greenbarron »

Jonatan wrote:I think you guys are overestimating the original posters knowledge about programming just a wee bit guys :)

It doesn't seem like he knows what the word compile even means(no offense).
None taken
Post Reply