Looping Sounds on the Audio Channel

Started by GoToHellDave, Wed 14/11/2012 16:47:47

Previous topic - Next topic

GoToHellDave

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
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.

AprilSkies

This way

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

www.apemarina.altervista.org

SMF spam blocked by CleanTalk