This content has been marked as final. Show 6 replies
Director can natively only control it's own sound volume (lookup
commands like volume()in the help for specifics).
The BuddyAPI xtra (www.mods.com.au/budapi) has a few functions that can
help you out with respect to the system volume, not just the Director
baGetVolume() will tell you what it is now (save that in a global
variable so you can reset it when you are done)
baSetVolume() will set the system volume.
That's cool because I own the BuddyAPI xtra. I was thinking of doing this as a frame script. Would you be so kind as to show me a sample script. I am still very new to lingo. Thanks for all the help.
Put this in a movie script
on setSystemVolume vNewVolume
------end volume control-------
Any time before you try setting the volume, run this once:
Then, when you want to change the volume, do this:
where someNumber is an integer from 0 through 100. 0 means mute. 100
means as loud as it can be. You can call that as many times as you want
to change the volume as you please.
Then to reset it back to the way it was before you got to it, use this
A good place to put that is on stopMovie (or on your exit button, or
whatever is the last thing that is done before the movie is closed.
Thanks for all your help. I had to change "wave" to "master" and the script works great.
Am I way off? Doesn't the soundLevel with a value of 0-8 control the system
volume? Or was this done away with in MX 2004?
Word of Mouth Productions
"EL_devin" <email@example.com> wrote in message
> I'm sure there is a simple script that once a user launches the projector
> will set their system volume to 50%, then when they exit the projector
> volume will return.
> Please help
That works too. But as you pointed out, you are limited to levels 0-7.
I think it is better to use Buddy and get a lot more control.