Knowledge about Outrage Sound Format wanted!

For all coding issues - MODers and programmers, HTML and more.

Moderators: Jeff250, fliptw

Post Reply
D.Cent
DBB Ace
DBB Ace
Posts: 53
Joined: Wed Nov 22, 2006 1:50 pm
Location: Schwieberdingen (Germany)
Contact:

Knowledge about Outrage Sound Format wanted!

Post by D.Cent » Wed Apr 16, 2008 9:59 am

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!
pATChes11
DBB Admiral
DBB Admiral
Posts: 1020
Joined: Fri Jun 08, 2001 2:01 am
Location: Ariel, WA USA

Post by pATChes11 » Wed Sep 17, 2008 10:53 pm

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
-pATCheS

Did that brighten your day?
D.Cent
DBB Ace
DBB Ace
Posts: 53
Joined: Wed Nov 22, 2006 1:50 pm
Location: Schwieberdingen (Germany)
Contact:

Post by D.Cent » Thu Sep 18, 2008 8:16 am

Thank you so much!!! :)

I will write my own tool and will let you know when it's finished!
User avatar
The Lion
DBB Ace
DBB Ace
Posts: 197
Joined: Mon Apr 17, 2006 2:13 pm
Location: The Netherlands

Re:

Post by The Lion » Thu Sep 18, 2008 9:31 am

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.)
Post Reply