![Vlsi VS1005 Manual Download Page 55](http://html.mh-extra.com/html/vlsi/vs1005/vs1005_manual_1042919055.webp)
HH
VS1005 VSOS A
UDIO
S
UBSYSTEM
VS1005g
12
Controlling Audio from VSOS Shell with UiMessages
When using the VSOS Shell, some audio functions may be controlled even if running
a VSOS program that doesn’t take audio controls. If the TTY is not in RAW mode, the
following escape sequences defined in <uimessages.h> may be sent to the shell.
12.1
Setting Volume anywhere from VSOS Shell
Note that <B> here means sending ASCII code 1, invoked in most terminal emulation
programs by pushing Ctrl-B.
Volume up by 1/2 dB:
<B>111ms
Volume down by 1/2 dB:
<B>112ms
Set attenuation to -HH/2 dB, where HH is a hexadecimal number:
<B>206mHHs
Example:
To set volume to -20 dB, you need to send 40 = 0x28:
<B>206m28s
12.2
Sending Equalizer Controls from VSOS Shell
The filters are accessed with UiMessages that have the following format, where X is the
filter number (0..f), and YY is the 16-bit signed value presented as an unsigned 16-bit
hexadecimal number. <B>21XmYYs
Example:
Let’s assume we have the following configuration lines in config.txt:
RUN SETEQU 1 3 100 0 0.7
RUN SETEQU 2 3 10000 0 0.7
Now, to set bass (filter channel 1) to +6 dB (6), send the following command:
<B>210m6s
To set treble (filter channel 2) to -12 dB (0xfff4), send the following command:
<B>211mfff4s
Up To 16 channels may be accesses with messages ranging from 0x210 to 0x21f.
Rev. 3.57
2019-04-10
Page