Roku BrightSign Manual do Utilizador Página 13

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 26
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 12
13
set_volume
Volume is a percentage and so takes a value 0-100. The volume value is clipped prior to use i.e.
SetVoume(101) will set the volume to 100 and return TRUE. The volume is the same for all
mapped outputs and USB/SPDIF/analog. There is however a separate volume level stored for
audioplayer and videoplayer.
Set_channel_volumes
You can control volume on individual audio channels. This volume command takes a hex channel
mask which determines which channels to apply the volume to and a level which is a percentage
of full scale. The volume control works on the channel of audio rather than the output. The
channel mask is a bit mask with the following bits for AC3 output:
&H01 Left
&H02 Right
&H04 Center
&H08 Subwoofer
&H10 Left surround
&H20 Right surround
&H3f is all channels, &H07 is just the LCR channels (Left, Center, Right), &H03 would just be
right and left, &H30 just the surrounds, etc. The channels are the channels in the audio file and not
the output channels i.e. if you are playing a stereo file but have mapped it to the middle analog
output then its volume is still controlled by the Left and Right bits &H01 and &H02.
Example: This code sets audio output to come out the Audio 1 port:
video = CreateObject("roVideoPlayer")
video.SetAudioMode(1) ‘ STEREO
video.SetAudioOutput(0)
video.MapStereoOutput(2)
Example: This code sets audio output to come out USB port to a USB Speaker
video.SetAudioMode(0) ‘ SURROUND 5.1 decoder
video.SetAudioOutput(1) ‘ USB
Example: This code sets the volume level for individual channels
audio = CreateObject(“roAudioPlayer”)
audio.SetChannelVolumes(&H01, 60) ‘left channel to 60%
audio.SetChannelVolumes(&H02, 75) ‘right channel to 75%
audio.SetChannelVolumes(&H04, 80) ‘center channel to 80%
audio.SetChannelVolumes(&H07, 70) ‘left, right, center channel to 70%
audio.SetChannelVolumes(&H3f, 65) ‘all channels to 65%
Vista de página 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18 ... 25 26

Comentários a estes Manuais

Sem comentários