Sound volume

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
proza
Posts: 14
Joined: Thu Jul 12, 2007 3:34 pm

Sound volume

Post by proza » Mon Jul 16, 2007 4:44 am

I would like to know how can I change the sound volume.

Thanks!
Proza

xApple
Posts: 113
Joined: Wed Nov 29, 2006 10:21 pm

Post by xApple » Mon Jul 16, 2007 5:48 am

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.

proza
Posts: 14
Joined: Thu Jul 12, 2007 3:34 pm

Post by proza » Wed Jul 18, 2007 6:19 am

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

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Post by BvG » Wed Jul 18, 2007 11:47 am

you can set the playloudness of your own sounds, but to set stuff of the os, you need an external,shell or applescript workaround.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

xApple
Posts: 113
Joined: Wed Nov 29, 2006 10:21 pm

Post by xApple » Thu Jul 19, 2007 11:58 pm

You can use the slider to do that by reading its "thumbPosition" propriety.

Post Reply