song not loop

Started by homey3, Sat 07/08/2004 09:30:52

Previous topic - Next topic

homey3

I have a song I need to play through only once and not immediately repeat.  Is there a way to do this?

Jonathan

Oz

Quote from: homey3 on Sat 07/08/2004 09:30:52
I have a song I need to play through only once and not immediately repeat.Ã,  Is there a way to do this?

Jonathan

Hmmm. Not sure. But you could always play it back as a wave or mp3 sample).
Diversity is divine!

homey3

I just saved it as a sound effect and did it that way.  It works at least.

Ishmael

Look up the manual, for text script command "SetMusicRepeat":



SetMusicRepeat
SetMusicRepeat (int loopflag)

Tells the system whether to repeat background music tracks. LOOPFLAG is either 1 (repeat, default) or 0 (don't repeat).
This function must be called BEFORE PlayMusic - it sets whether future music tracks will repeat or not.

Example:

SetMusicRepeat(1);

will loop the background music.
See Also: SetMusicVolume


I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

SMF spam blocked by CleanTalk