Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Audio] Playing back multiple SND or multiple WAVs in a SND at once
#1
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.
[Image: RebelFactionStanding.png]
 
Reply
#2
(2012-08-15, 09:09 AM)MechWarrior001 Wrote: 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 Smile
"Look, sir, droids!" -- Davin Felth
 
Reply
#3
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.
 
Reply
  



Forum Jump:


Browsing: 1 Guest(s)