View Single Post
  #3  
Old 05-08-2014, 08:02 PM
Guest001 is offline Guest001
Registered User

Join Date: Aug 2008
Posts: 4,971

Quote:
Originally Posted by flamerboy67664 View Post
How to I put music to my maps?
First you may need to understand how the WAC works with sound files.

Dave61's DFX/DFX2 Website

You may use various script methods to achieve it.

The most simple way is to use the waveready command in the WAC but there are other more complex methods and there are limitations.

FORMAT: 16bit PCM Wave
CHANNELS: x1 Mono recommended
BITS PER SAMPLE: 16
FREQUENCY: 41100Hz - 8000Hz


// plays once
if waveready() and never() then
wave("yourwavefile.wav")
endif


//plays as loop
if waveready() then
loop
wave("yourwavefile.wav")
end
endif
Reply With Quote