Page 1 of 1

Knowledge about Outrage Sound Format wanted!

Posted: Wed Apr 16, 2008 9:59 am
by D.Cent
Hey,
I am searching for some source-code about converting Outrage's Sound Format (*.osf) to WAVE-audio-files (*.wav) or in the other direction.
I couldn't find any useful code, neither in the D3SDK nor in the D3EDIT-source.

Does anyone have some C++-source-code or knowledge about what OSF is? (e.g. OGF-files are some header-changed TGA-files).
Someone said OSF would be vorbis audio, but the files are too big for vorbis.

Please help!

Posted: Wed Sep 17, 2008 10:53 pm
by pATChes11
On the off chance that anyone cares after this long (this category is dead anyway), there's a tool called Game Audio Player that can convert OSF to WAV. OSF just an Interplay ACM renamed. Some information here, and a decoder library here.

Anyway, the only way I know of to make decent-sounding OSF files is with the MusicTester tool that comes with D3Edit. Creating mono files is effortless, just make sure that the input is 22KHz 16 bit. Stereo is a little more painful, as there must be an even number of samples in the audio (or maybe odd, I never actually checked), or the program will crash. Adding or deleting a single sample in any half decent audio program should fix the crash.

And yes, you can have stereo audio taunts in D3, although instead of being limited to 2.8 seconds, it's about 1.4 seconds (32kb limit per file). But think of the possibilities: you could have a missile sound come from off to the right... :P

Posted: Thu Sep 18, 2008 8:16 am
by D.Cent
Thank you so much!!! :)

I will write my own tool and will let you know when it's finished!

Re:

Posted: Thu Sep 18, 2008 9:31 am
by The Lion
pATChes11 wrote:OSF just an Interplay ACM renamed.
Oh wow! Why haven't I ever read this before...

I've seen this question more than once, and wondered about it myself,
but I never found an answer, although I could run MusicTester and
capture the sound.

So thanks a lot! I tested it by running acmtool on an .osf file to create
a .wav and it worked.

By the way, acmtool comes with the aforementioned decoder library,
in addition to plugins for some common audio players, so there's no
need to wait for a new tool to be written.

Basic usage info:

Code: Select all

acmtool -d -o outfile.wav infile.osf
(P.S. don't use "here" as link text. Imagine if e.g. Wikipedia did it
that way... It's no big deal for a very short text, but always better to
have descriptive links.)