Music playing in game

Started by Best, Thu 09/10/2003 18:30:03

Previous topic - Next topic

Best

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
Valame tes lan-utas desi gronto?

Scummbuddy

#1
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
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

Best

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.
Valame tes lan-utas desi gronto?

Scorpiorus

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

SMF spam blocked by CleanTalk