サウンドデバイスの音量設定を取得します。
Setting := SoundGetVolume(Component, Device)
If blank or omitted, it defaults to the master volume setting. Otherwise, specify the component's display name and/or index, e.g. 1
, "Line in"
or "Line in:2"
.
詳しくは「コンポーネント(サウンド機能)」をご覧ください。
If blank or omitted, it defaults to the system's default device for playback (which is not necessarily device 1). Otherwise, specify the device's display name and/or index, e.g. 1
, "Speakers"
, "Speakers:2"
or "Speakers (Example HD Audio)"
.
詳しくはデバイス(サウンド機能)をご覧ください。
型:浮動小数点数
この関数は、0.0 から 100.0 までの浮動小数点数を返します。
A TargetError is thrown if the device or component could not be found or if the component does not support this control type. Otherwise, an OSError is thrown on failure.
システムにインストールされているサウンドデバイスの機能(名前や使用可能なコンポーネントなど)を調べるには、サウンドカード解析スクリプトを実行します。
master_volume := SoundGetVolume() MsgBox "Master volume is " master_volume " percent."
mic_volume := SoundGetVolume("Microphone") MsgBox "Microphone listening volume is " mic_volume " percent."