Looping a sound: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
Line 11: Line 11:


==Conclusion==
==Conclusion==
 
Save the file and it's loop-ready. Now when you use a Ambient Generic and check the '''is looped''' flag it will loop in game correctly.
And that's all. Repeat this process for any sounds you want looped.


[[Category:Sound System]]
[[Category:Sound System]]

Revision as of 10:39, 1 October 2008

Intro

In this short tutorial you will learn how to loop any sound file. Looping sounds in Source requires a simple short process to be made. Sounds cannot be simply looped by checking the 'Sound is 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 and 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 check the is looped flag it will loop in game correctly.