BrightSign Object Reference Manual (FW 5.1) User Manual

Page 55

Advertising
background image

47

audio.SetChannelVolumes(&H03, 65)

‘all channels to 65%

Playing Multiple Audio Files Simultaneously

Multiple MP3 files, as well as the audio track of a video file, can be played to any combination of the following:

Analog outputs

SPDIF / HDMI

USB

Only a single file can be sent to an output at any given time. For example, two roAudioPlayers cannot simultaneously play
to the SPDIF output. The second one to attempt a PlayFile will get an error. To free an output, the audio or video stream
must be stopped (using the ifMediaTransport

Stop or StopClear calls).


Notes on multiple audio-file functionality:

The onboard analog audio output and HDMI output are clocked by the same sample-rate clock. Therefore, if

different content is being played out of each, the content must have the same sample rate.

Currently, only a single set of USB speakers is supported.

Each audio and video stream played consumes some of the finite CPU resources. The amount consumed depends

on the bitrates of the streams. Testing is the only way to determine whether a given set of audio files can be played
at the same time as a video. The maximum recommended usage is a 16Mbps video file with three simultaneous
MP3 160kbps streams.


Example: This code plays a video with audio over HDMI and an MP3 file to the onboard analog port.
video=CreateObject("roVideoPlayer")

Advertising