View Full Version : sound control
zeta5.0
01-27-2008, 02:34 PM
Howdy all
i have managed to put a couple of buttons on which control the sound.
1 left click to mute and right click to restore the sound Audio.Pause(CHANNEL_BACKGROUND);
Audio.Play(CHANNEL_BACKGROUND);
2 left click to reduce sound and right click to increase sound
Audio.SetVolume(CHANNEL_BACKGROUND, 50);
Audio.SetVolume(CHANNEL_BACKGROUND, 150);
what i would like to do now is use a slider to control the sound but can find no such thing in the program, can anybody help me?.
zeta5.0
01-27-2008, 02:53 PM
I have found the slider now, thanks to reading your forums, just have to work out the script to make it work.
RizlaUK
01-27-2008, 02:58 PM
look at the menu on the main application window, click objects>plugins>slider
lol, dident see that
set the slider max to 255 and put this
Audio.SetVolume(CHANNEL_NARRATION, e_Pos);
in slider on pos change event
zeta5.0
01-27-2008, 08:03 PM
Thankyou for the help, works okay but wanted to preset sound to 25 on slider, did it on onshow page Slider.SetSliderPos("Plugin1", 25); if this is not how you would achieve this please let me know.
RizlaUK
01-28-2008, 07:11 AM
if this is not how you would achieve this please let me know.
no, thats exactly how i would do it
but make sure you set the volume to the same lvl as the slider
StartUpVol=25
Slider.SetSliderPos("Plugin1", StartUpVol);
Audio.SetVolume(CHANNEL_NARRATION, StartUpVol);
zeta5.0
01-28-2008, 02:40 PM
Thankyou i did set them at the same level,wanted to put some text on the slider but it will not come to the front, but made a button and put the slider in the button but would have been better to be alble to put text or change the colour of the slider. Thankyou again for you guidance.
adreampicture
02-13-2008, 02:13 PM
Hello,
I guess I am doing something wrong - I added slider, but for some reason it doesn't control the background audio (Project > Audio > Background music). Please advise. Thanks!!!
zeta5.0
02-13-2008, 02:21 PM
Howdy
change the narration to background
jpdragon
02-14-2011, 11:47 AM
Somehow I can't create a new post but I have a similar question. I have alot of buttons on my apps and I want to have a setting to turn the sound of those buttons off? Can it be done?
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.