READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

does anyone have a QSound API overview?

Get help on any and all audio formats, or chip in and help others!
Post Reply
Rheini
Moderator
Posts: 652
Joined: Wed Oct 18, 2006 9:48 pm
Location: Germany
Has thanked: 19 times
Been thanked: 40 times
Contact:

does anyone have a QSound API overview?

Post by Rheini » Tue Nov 10, 2009 7:19 pm

I try to find out where the audio files in Beasts & Bumpkins are decoded.
Maybe it could be helpful to know which functions are used in QSound to play back a sound.
Is anybody familiar with the QSound API?

User avatar
aluigi
VVIP member
VVIP member
Posts: 1917
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 644 times
Contact:

Re: does anyone have a QSound API overview?

Post by aluigi » Tue Nov 10, 2009 7:59 pm

qsound is mixing and positional stuff, I have never heard of proprietary codecs used in it

Rheini
Moderator
Posts: 652
Joined: Wed Oct 18, 2006 9:48 pm
Location: Germany
Has thanked: 19 times
Been thanked: 40 times
Contact:

Re: does anyone have a QSound API overview?

Post by Rheini » Tue Nov 10, 2009 8:03 pm

Yeah but you somehow have to hand over your sound data to QSound, if I find the function where this is done, I maybe also find the function that decodes it before that.

User avatar
aluigi
VVIP member
VVIP member
Posts: 1917
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 644 times
Contact:

Re: does anyone have a QSound API overview?

Post by aluigi » Tue Nov 10, 2009 8:25 pm

it's a EA game so for it uses for sure one of the EA codecs.
have you tried all the related codecs available in ffmpeg?

ffmpeg is a nightmare to use even for doing a so easy job like decoding a raw data block, the last time I needed to do a similar test I got its codecs one by one and decoded the raw block by hand with a simple tool written and updated each time... blah bad memories.

for qsound it's enough to see what functions are imported, and those to which you can be interested are QSWaveMixPlay and QWaveMixOpenWave

Rheini
Moderator
Posts: 652
Joined: Wed Oct 18, 2006 9:48 pm
Location: Germany
Has thanked: 19 times
Been thanked: 40 times
Contact:

Re: does anyone have a QSound API overview?

Post by Rheini » Wed Nov 11, 2009 12:45 am

Yeah an EA in-house audio library is used. As I pointed out here it uses some kind of EA format without a proper header and with an unknown codec number.
Could be Microtalk 1:10 because of the .m10 file extension, but some tests with Sound eXchange (adding a proper header and converting) didn't yield any results. It's the only tool supporting that one and the codec hasn't been reversed ever.

I've looked into ffmpeg merely to find out some more header value meanings. It IS a PITA.

It uses Play and OpenWave functions as well as OpenChannel etc. but in a kind of strange way. I gotta dig deeper into that when I get some time.

User avatar
aluigi
VVIP member
VVIP member
Posts: 1917
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 644 times
Contact:

Re: does anyone have a QSound API overview?

Post by aluigi » Wed Nov 11, 2009 12:44 pm

if can be of any help, yesterday I tried a bit using an experimental tool I wrote some months (years?) ago which is a collection of the same algorithms used in ffmpeg and is usable with raw data but got no results, ever noisy data even when using the EA algorithms.

Rheini
Moderator
Posts: 652
Joined: Wed Oct 18, 2006 9:48 pm
Location: Germany
Has thanked: 19 times
Been thanked: 40 times
Contact:

Re: does anyone have a QSound API overview?

Post by Rheini » Wed Nov 11, 2009 4:59 pm

Thanks for trying.
I just found some source code using QMixer, sheds some light on the structures and parameters used!

http://svn.gna.org/svn/warzone/tags/1.1 ... d/qmixer.h

Rheini
Moderator
Posts: 652
Joined: Wed Oct 18, 2006 9:48 pm
Location: Germany
Has thanked: 19 times
Been thanked: 40 times
Contact:

Re: does anyone have a QSound API overview?

Post by Rheini » Thu Jul 25, 2019 3:49 pm


Post Reply