SoundVolume - set or get the system speaker sound volume

버전 1.2.0.0 (4.51 KB) 작성자: Yair Altman
SoundVolume sets or gets the computer system's speaker sound volume, using Java
다운로드 수: 3.9K
업데이트 날짜: 2014/5/9

라이선스 보기

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)

Technical description:
http://UndocumentedMatlab.com/blog/updating-speaker-sound-volume
http://java.sun.com/docs/books/tutorial/sound

인용 양식

Yair Altman (2024). SoundVolume - set or get the system speaker sound volume (https://www.mathworks.com/matlabcentral/fileexchange/25584-soundvolume-set-or-get-the-system-speaker-sound-volume), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2008a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Audio and Video Data에 대해 자세히 알아보기
태그 태그 추가
도움

도움 준 파일: MEAP - Matlab Enhanced Audio Player

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.2.0.0

Fix for Windows Vista, 7 and hopefully also 8

1.1.0.0

Clarified that SoundVolume uses fully documented and supported Java functionality.

1.0.0.0