[Audio] Playing back multiple SND or multiple WAVs in a SND at once

Joined
Oct 13, 2010
Messages
108
I've done some experimenting, and I've successfully managed to get the Coronet star-port to loop tmpk_alarm_lp.wav instead of amb_starport_int_lp.wav.

Now I'm wondering if there is a way to get the engine to playback multiple SNDs or WAVs in a cell at once.

Edit: I managed to successfully modify client_shared_soundobject_starport_interior.cdf and add another ASND entry without crashing the client, however the sound doesn't play.

Edit: I removed the modified cdf entry and added the second sound to the SND entry, adding a 00 byte marker in-between both entries, however neither sound seems to play in this format.

Edit: I added a new form to the SND and named it SD2D0003 and pointed it at the alarm wave; So at this point in time two versions of SD2D0003 exist: One for the normal starport ambiance track and the other for the alarm track. The theory was to see if it would trick the engine into playing back both forms, either simultaneously or alternatively. In the end only it played back the [starport ambience] track but not the [alarm] track.
 

DavinFelth

Administrator
Staff member
Administrator
Joined
Aug 29, 2010
Messages
165
MechWarrior001 said:
Edit: I removed the modified cdf entry and added the second sound to the SND entry, adding a 00 byte marker in-between both entries, however neither sound seems to play in this format.
You're along the right lines here, although in addition to this there is an integer in the file which tells it how many tracks are listed which must also be adjusted. I can't recall where the integer is (though it's likely the four bytes before the first track string) but if you can find the combat snd file I think it uses this method so it should help you out.

If you're still having trouble when I get back tomorrow then I'll look into it a bit more, have always been meaning to fully figure out snd's :)
 

Timbab

Administrator
Staff member
Administrator
Moderator
Joined
Oct 6, 2010
Messages
1,057
Location
Magna Germania
Kay could probably help you with that, she was able to add sound objects to all sorts of things.

As far as I remember, she mentioned something along the lines, that if you stack sounds, or put too many sounds in one area, the volume of some of them goes through the roof, or something like that.
 
Top Bottom