Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Best on Thu 09/10/2003 18:30:03

Title: Music playing in game
Post by: Best on Thu 09/10/2003 18:30:03
I have one questions for you... (Coolio:) I would like to know how to turn off sound in game. Is there a possibility to do so?

In my game?

Thanks
Title: Re:Music playing in game
Post by: Scummbuddy on Thu 09/10/2003 18:52:26
next time try going into the ags manual and type in sound

then under multimedia you  will find your answer

StopAmbientSound
StopChannel
StopMusic

Hope this helps
Title: Re:Music playing in game
Post by: Best on Thu 09/10/2003 20:01:16
I understand this, but to be clear - I want a player playing my game later to have the possibility to do so. To turn of/on the music sound.
Title: Re:Music playing in game
Post by: Scorpiorus on Thu 09/10/2003 21:41:31
There is a setup the player can always tweak with. But if you want him to be able to change the sound settings in midplay you can set up an options gui with the sliders or buttons and link it with the next commands:

SetDigitalMasterVolume()
SetSoundVolume()
SetSpeechVolume()
SetMusicMasterVolume()

passing 0 will disable all the music and sound effects (except for MIDI):

SetDigitalMasterVolume(0);

~Cheers