GetVolume
Description: |
baGetVolume gets the current system volume level. | ||||||||||||||||||||||||||||||||||||
Platforms: |
Windows and Macintosh | ||||||||||||||||||||||||||||||||||||
Usage: |
Result = baGetVolume( Device ) | ||||||||||||||||||||||||||||||||||||
Arguments: |
String.
|
||||||||||||||||||||||||||||||||||||
Returns: |
Integer. |
||||||||||||||||||||||||||||||||||||
Examples: |
Director: Authorware: |
||||||||||||||||||||||||||||||||||||
Notes: |
Not all sound cards support this function. Some cards will only support some of the device types. They will return -1 if the function is not supported. The function will get the volume from the first sound card found. If the left and right channels are at different levels, then the average of the two is returned. Some sound cards do not set the volume precisely. For example, if you set the volume to 50 using the baSetVolume function, then call this function, it may return an 48 or 49. On Windows Vista, Microsoft made some big changes to the way the sound API works, you can no longer set the level for individual device types. On Macintosh, you can also use "master" for "speakers".
|
||||||||||||||||||||||||||||||||||||
See also: |
baSetVolume |