Looping a sound

From Valve Developer Community
Revision as of 01:39, 2 February 2009 by Craziestdan (talk | contribs) (Looping A Sound moved to Looping a Sound: fussy me)
Jump to navigation Jump to search

Intro

In this short tutorial you will learn how to loop a .wave sound file. (.mp3 can't be looped via cue points) Looping sounds in Source requires a simple short process to be made. Sounds cannot be simply looped by un-checking the Is NOT Looped flag of a ambient_generic, you must add cue points to a sound. To do we must use a program called Goldwave. Download it here. There is a free version available. Once installed you are ready to begin.

Adding the loop

Open Goldwave and open the sound you want to loop. Click the cues icon. (Cues button.jpg) Then in the new window click on the New button and add a cue At Start. Then click New for another cue and add a cue At End. So it looks like this:

Cue dialog.jpg

Conclusion

Save the file and it's loop-ready. Now when you use a Ambient Generic and un-check the Is NOT Looped flag it will loop in game correctly.