Page 1 of 1
does anyone have a QSound API overview?
Posted: Tue Nov 10, 2009 7:19 pm
by Rheini
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?
Re: does anyone have a QSound API overview?
Posted: Tue Nov 10, 2009 7:59 pm
by aluigi
qsound is mixing and positional stuff, I have never heard of proprietary codecs used in it
Re: does anyone have a QSound API overview?
Posted: Tue Nov 10, 2009 8:03 pm
by Rheini
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.
Re: does anyone have a QSound API overview?
Posted: Tue Nov 10, 2009 8:25 pm
by aluigi
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
Re: does anyone have a QSound API overview?
Posted: Wed Nov 11, 2009 12:45 am
by Rheini
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.
Re: does anyone have a QSound API overview?
Posted: Wed Nov 11, 2009 12:44 pm
by aluigi
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.
Re: does anyone have a QSound API overview?
Posted: Wed Nov 11, 2009 4:59 pm
by Rheini
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
Re: does anyone have a QSound API overview?
Posted: Thu Jul 25, 2019 3:49 pm
by Rheini