サウンドデバイスのミュート設定を変更します。
SoundSetMute NewSetting , Component, Device
型:整数
以下のいずれかの値:
1
またはTrue
で設定をオンにします。0
またはFalse
で設定をオフにしまs。-1
は、設定を現在とは逆に切り替えます。If blank or omitted, it defaults to the master mute 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)"
.
詳しくはデバイス(サウンド機能)をご覧ください。
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.
デフォルトの再生デバイスのマスターミュート設定を切り替える別の方法は、以下の例のように、スクリプトにキーストロークを送信させることです:
Send "{Volume_Mute}" ; Mute/unmute the master volume.
システムにインストールされているサウンドデバイスの機能(名前や使用可能なコンポーネントなど)を調べるには、サウンドカード解析スクリプトを実行します。
現在のミュート設定を取得するには、SoundGetMuteを使います。