Page 1 of 1
Sound volume
Posted: Mon Jul 16, 2007 4:44 am
by proza
I would like to know how can I change the sound volume.
Thanks!
Proza
Posted: Mon Jul 16, 2007 5:48 am
by xApple
Why do you want to change the sound volume ? It's something you should let the user change if he wants to. I always hate applications which change my sound volume inadvertently.
If you are using OS X it's easy just type:
Code: Select all
do "set volume output volume 80" as applescript
If you're on Windows.. well... good luck.
Posted: Wed Jul 18, 2007 6:19 am
by proza
I want to use a slider to let the user to change the sound volume, but it seems that it is impossible.
Thanks!
Proza
P.S. I am using Mac OS 9
Posted: Wed Jul 18, 2007 11:47 am
by BvG
you can set the playloudness of your own sounds, but to set stuff of the os, you need an external,shell or applescript workaround.
Posted: Thu Jul 19, 2007 11:58 pm
by xApple
You can use the slider to do that by reading its "thumbPosition" propriety.