Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: homey3 on Sat 07/08/2004 09:30:52

Title: song not loop
Post by: 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
Title: Re: song not loop
Post by: Oz on Sat 07/08/2004 15:09:15
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).
Title: Re: song not loop
Post by: homey3 on Sat 07/08/2004 18:02:29
I just saved it as a sound effect and did it that way.  It works at least.
Title: Re: song not loop
Post by: Ishmael on Sun 08/08/2004 05:47:26
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