setAudioVolume
Set audio volume.
Address
/audioMixer/setAudioVolume [type] [volume]
Arguments
Type | Description | |
---|---|---|
argument 1 | String | Audio type |
argument 2 | Float | The dB value, ranging from -40 to 10 |
Audio Type
Audio Type | Description |
---|---|
0x0001 | Monitor |
0x0003 | Program |
0x0700 | HDMI 1 |
0x0800 | HDMI 2 |
0x0200 | Microphone |
0x0002 | Video Clip |
0x0300 | Bluetooth |
0x0600 | BGM |
Example
Set the audio volume of Program to -10dB.
/audioMixer/setAudioVolume 3 -10
Note: Floating point numbers will be rounded down.
/audioMixer/setAudioVolume 1.9 = /audioMixer/setAudioVolume 1