Looping Menu Music

Tutorial collection, comprehensive listings on main site.

Looping Menu Music

Postby Tutorial on Wed Jan 14, 2009 12:48 am

category
General Half-Life 2/Sound

description
Use Wavosaur to loop a sound file.

keywords
sound, file, looping, menu, music.

Before we begin, you will need a sound editor that can make loop points (Audacity can't), I recommend "Wavosaur" (which is free), and the screenshots in this tutorial will be of it.

First, open the sound file that you want to have looped. This can be a MP3, WAV, OGG, doesn't matter.

Image

Then, select which part of the sound you want to be looped and click the red "L" button in the top row.
(You can also press Ctrl+A to select the whole track, then the "L" button to loop the entire track)

Image

Then, save it in "yoursourcemod/sound/ui". You have to save it as a WAV.

Next, open your "yoursourcemod/cfg/valve.rc" file, and add the following:

Code: Select all
play ui/<thenameofyourloop>.wav


Save and close it.

That is it! Now you should have a looping main menu track!

Keep in mind that WAV files are uncompressed, and hence can take up quite a lot of space, so try to keep the loop short.

- TheLinx
- Don't send PM's to this user -
Tutorial
Not A Real User
 
Joined: Sun Mar 06, 2005 11:00 pm

Re: Looping Menu Music

Postby Noodles on Wed Jan 14, 2009 12:52 am

Very nice! Might be worth mentioning that the software appears to be free?
'English as tuppence, changing yet changeless as canal water, nestling in green nowhere, armoured and effete, bold flag-bearer, lotus-fed Miss Havershambling, opsimath and eremite, feudal, still reactionary Rawlinson End.'
User avatar
Noodles
Pheropod
Pheropod
 
Joined: Mon May 09, 2005 3:52 pm
Location: Sweden

Re: Looping Menu Music

Postby FlynT on Wed Jan 14, 2009 1:16 am

Nice! I remember this was asked really often!
Image
*Ahhrr, my Nipples they Hurt, they Hurt when i twist them*
User avatar
FlynT
Been Here A While
Been Here A While
 
Joined: Sun Jun 15, 2008 2:59 am
Location: Germany

Return to Tutorials

Who is online

Users browsing this forum: No registered users