Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: GoToHellDave on Wed 14/11/2012 16:47:47

Title: Looping Sounds on the Audio Channel
Post by: GoToHellDave on Wed 14/11/2012 16:47:47
Just a quick beginner's audio question here.

I want to make a certain ambient sound loop. I've created an audio channel for it and I was wondering what code I have to use to make it loop. Here is what I have already:

Code (AGS) Select
AudioChannel*ac = aBurgerBarBuzz.Play();
ac.Volume = 60;


That works fine but it stops once the audio file has finished playing. How do I get it to loop?

Thanks in advance.

Ben.
Title: Re: Looping Sounds on the Audio Channel
Post by: AprilSkies on Wed 14/11/2012 17:01:40
This way

Code (AGS) Select
AudioChannel*ac = aBurgerBarBuzz.Play(eAudioPriorityNormal, eRepeat);
ac.Volume = 60;