BrightSign HD2000 Object Reference Manual User Manual

Page 16

Advertising
background image

1 - Stereo audio is mapped to AUDIO-2
2 - Stereo audio is mapped to AUDIO-1

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%

Playing Multiple Audio Files Simultaneously (HD2000 only)

Multiple MP3 files along with an audio track as part of a video file can be played to any combination of the
following:

 Analog outputs 1, 2, or 3

 SPDIF / HDMI

 USB

16

Advertising
This manual is related to the following products: