Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This object allows individual control of audio outputs on the player.

audiooutput IDL

Code Block
languagejs
    constructor(String output_name)
] interface AudioOutput {
            attribute float volumeLinear;
            attribute float volumeDb;
            attribute long delay;   
            attribute float treble; 
            attribute float bass;   
            attribute boolean mute;
   readonly attribute string name;
};

Panel
borderColor#3D3D3D
bgColor#F4F4F4
titleColor#3D3D3D
borderWidth0
titleBGColor#3D3D3D
borderStylesolid

ON THIS PAGE

Table of Contents
minLevel1
maxLevel5
outlinefalse
indent20px
typelist
printablefalse


Object Creation

To create an audiooutput object, use the require() method.

You must also enter an AudioOutputClass (in the example below, "analog" is used). The AudioOutputClass parameter can take the following strings:

  • “none”

  • "hdmi” or "hdmi-1", "hdmi-2", "hdmi-3", or "hdmi-4" for Series 5 players with multiple outputs

  • “usb”

  • “spdif”

  • "analog" 

  • “analog:N”

  • "earc" (AU335 only)

  • Support for multiple USB outputs using the USB port naming terminology. See roDeviceInfo-getusbtopology

Code Block
languagejs
var AudioOutputClass = require("@brightsign/audiooutput");
var audiooutput = new AudioOutputClass("analog");

AudioOutput

Use this interface to create audiooutput objects.

  • [volumeLinear float] volumeLinear:   Sets the linear volume of the specified output as a percentage represented by a floating point number between 0 and 1 (1.0 is 100%).

  • [volumeDb float] volumeDb:   Sets the volume in decibels of the specified output as a percentage represented by a floating point number where 0.0 is 100%

  • [delay long] delay: On Series 3 and 4 players, delays the audio for a specific audio output by lagging decoded samples before they reach that output. Delays are in milliseconds.

  • [treble float] treble:   On Series 3 and 4 players, sets the treble of the specified output in decibels. The treble floating point numbers can range from -10 to 10, with 0 indicating no modification to the audio signal. 

  • [bass float] bass:   On Series 3 and 4 players, sets the bass of the specified output in decibels. The bass floating point numbers can range from -10 to 10, with 0 indicating no modification to the audio signal. 

  • [mute boolean] mute:   Mutes the specified output if True. This method is set to False by default.

  • [name string] name: The name of the output.