Music

Started by ln888, Fri 13/09/2013 13:38:47

Previous topic - Next topic

ln888

I use the function aMusic.Play();
How do I stop, increases and decreases background music?

Adeel

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

Khris

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
  AudioChannel *music1 = aMusic.Play();
  music1.Volume = 30;  // decrease volume to 30

SMF spam blocked by CleanTalk