View Single Post
  #5  
Old 05-07-2018, 03:41 PM
Guest001 is offline Guest001
Registered User

Join Date: Aug 2008
Posts: 4,971

Quote:
Originally Posted by Oscarmike247 View Post
Yeah i agree. The only problem with using the WAC to play a music file is that you cant play other wav files or it will interrupt the music. Or if the player presses esc it will cut it off.
It look's like there might be several separate sound streams at work in the engine, from what I can gather from these.

SS_SoundSet
SSNwave
SSNradio
sound2tgt


wave(Plays any wave file in game directory or pff - overrides pff)
waveready() True if no talking going on


Without delving into territory I've had little experience in, I've worked around it by mostly using chain(#), waveready() and wave("") commands.

To prevent interference with game sounds, you need to time your wave files for it all to work OK but you can mix both custom and inbuilt audio together.

Maybe you could try a variable controlled loop for the background sound, a ploop for sounds at the player like custom messages etc. and normal waveready() commands for pff game effects and speech.

Last edited by Guest001; 05-07-2018 at 03:51 PM. Reason: Grammar
Reply With Quote