Page 1 of 1

Ambient sound won't play in-game

Posted: Sat Dec 01, 2012 4:38 pm
by Luke
I added this "new" ambient sound, ripped from another wad.
The file is in .wav format, and I've tried to import it in the wad as it is, as .mp3 and as .ogg (using audacity to convert it).

The ambient sound code for this sound is defined in the SNDINFO lump as follows:

Code: Select all

computer/001		COMP001

$ambient 1		  computer/001	point random 4.0 11.0 1.0
When I try to insert the actor 14001 in my custom map and I run the game to test it, the sound won't play.
I tried to change its index but nothing changed.

I'm clueless, I'd try to convert it in .mid/.midi if I find a converter, anyway, does anyone have any clue?

Here is the cursed file.


If you want to see the wad by yourself here it is, it's the Zandronum Christmas Community Pack resource wad.

RE: Ambient sound won't play in-game

Posted: Sun Dec 09, 2012 4:25 am
by ZzZombo
How can you convert it to MIDI? MIDIs are just sets of commands of what to play on the sound card and doesn't contain real audio data.

RE: Ambient sound won't play in-game

Posted: Wed Jan 02, 2013 10:01 am
by Luke
I don't know honestly, but I converted into .mp3 the RotT OST using direct2midi. After the conversion Windows Media Player was able to play the files, while before it wasn't.
My knowledge of audio formats limits to the end-user experience (flac is lossless, mp3 plays on my mp3 reader, midi is small and limited).
I couldn't use direct2midi to convert this file because the program is asking me to register it (paying 29,99$) and I don't want to buy it. It was the only midi converter that could convert midi files to other formats. I should try with something open source on linux (I remember a good converter that used to handle every file format) but my penguin's installation is wasted and I have to reinstall it, since months.
Besides the story of my life, I don't see why that sound plays fine in a wad, and won't play if extracted and imported into another.

RE: Ambient sound won't play in-game

Posted: Wed Jan 02, 2013 10:12 am
by Zeberpal
MIDIs can only be music, not a sound, ambient sound. The problem is in SNDINFO obviosly. I had a problem with ambient sounds as well. It was complicated at the time and I just made a dummy decorate actor which simulates ambient sound.