SoundVolume - set or get the system speaker sound volume
by Yair Altman
15 Oct 2009
(Updated 15 Oct 2009)
SoundVolume sets or gets the computer system's speaker sound volume, using Java
|
Watch this File
|
| File Information |
| Description |
SoundVolume sets or gets the computer's system speaker sound volume
Syntax:
volume = SoundVolume(volume);
SoundVolume(volume) sets the system speaker sound volume. The volume value should be numeric, between 0.0 (=muted) and 1.0 (=max).
volume = SoundVolume gets the current speaker sound volume (0.0-1.0).
volume = SoundVolume(volume) sets the system speaker sound volume and returns the previous volume value (from before setting the new value).
Note:
SoundVolume relies on Java functionality that is fully supported and documented. In this respect, SoundVolume is different from some of my other Matlab-Java utilities that rely on undocumented code.
Bugs and suggestions:
Please send to Yair Altman (altmany at gmail dot com)
See also:
http://UndocumentedMatlab.com
http://java.sun.com/docs/books/tutorial/sound
|
| MATLAB release |
MATLAB 7.6 (R2008a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 15 Oct 2009 |
Clarified that SoundVolume uses fully documented and supported Java functionality. |
|
Contact us at files@mathworks.com