Ambient sound won't play in-game

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
Luke
Forum Regular
Posts: 512
Joined: Mon Jun 18, 2012 6:32 pm
Contact:

Ambient sound won't play in-game

#1

Post by Luke » Sat Dec 01, 2012 4:38 pm

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.

ZzZombo
Forum Regular
Posts: 323
Joined: Mon Jun 11, 2012 12:11 pm
Location: Ravenholm

RE: Ambient sound won't play in-game

#2

Post by ZzZombo » Sun Dec 09, 2012 4:25 am

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.

User avatar
Luke
Forum Regular
Posts: 512
Joined: Mon Jun 18, 2012 6:32 pm
Contact:

RE: Ambient sound won't play in-game

#3

Post by Luke » Wed Jan 02, 2013 10:01 am

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.

User avatar
Zeberpal
Forum Regular
Posts: 477
Joined: Mon Jun 04, 2012 6:55 am

RE: Ambient sound won't play in-game

#4

Post by Zeberpal » Wed Jan 02, 2013 10:12 am

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.
Image ImageImage

Post Reply