Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: ln888 on Fri 13/09/2013 13:38:47

Title: Music
Post by: ln888 on Fri 13/09/2013 13:38:47
I use the function aMusic.Play();
How do I stop, increases and decreases background music?
Title: Re: Music
Post by: Adeel on Fri 13/09/2013 13:50:01
Hi ln888.

Please copy this text: AudioChannel functions and properties as well as AudioClip functions and properties

Paste it into the manual's index, press Enter and enjoy ;-D!

EDIT: Remember to search either of the two entries one-by-one.
Title: Re: Music
Post by: Khris on Fri 13/09/2013 14:00:10
The short of it: the play command returns a pointer to the AudioChannel, and you can use that to change the Volume or stop playback:

Code (ags) Select
  AudioChannel *music1 = aMusic.Play();
  music1.Volume = 30;  // decrease volume to 30