Player APIs (BrightScript & Ja...
...
Object Reference
Presentation and Widget Object...
roAudioOutput
6min
this object allows individual control of audio outputs on the player the javascript equivalent is audiooutput docid\ lxzj2b4solxtnxkxxkob5 object creation the roaudiooutput object requires a single output parameter upon creation createobject("roaudiooutput", output as string) the output 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” (n specifies the port enumeration, which is useful for models with multiple analog audio ports; you can also use "analog 1" to specify the analog output on a model with a single analog audio port) "earc" (au335 only) support for multiple usb outputs using the usb port naming terminology see rodeviceinfo docid\ utkdmpos1ulxaoylx1ns6 you can create any number of roaudiooutput objects there can be multiple instances of this object that represent the same audio output, but in these cases one object will override another ifaudiooutput setvolume(a as integer) as boolean sets the volume of the specified output as a percentage represented by an integer between 0 and 100 settone(treble as integer, bass as integer) as boolean sets the treble and bass of the specified output the treble and bass integers can range from 1000 to 1000, with 0 indicating no modification to the audio signal each increment represents a change of 0 01db setmute(a as boolean) as boolean mutes the specified output if true this method is set to false by default getoutput() as string returns the string with which the roaudiooutput object was created setaudiodelay(delay in milliseconds as integer) as boolean delays the audio for a specific audio output by lagging decoded samples before they reach that output delays are limited to 150ms or less currently, the system software only supports positive delays; therefore, if you need to set the audio ahead of the video, you will need to use rovideoplayer setvideodelay() instead getplugstate( ) as boolean this function returns true if the corresponding output has a plug in it, false if it does not, or invalid if the plug state cannot be determined on the current hardware or os version this is supported in bos 9 0 163 onwards the setvolume() and setmute() methods work in conjunction with the volume and mute functionality offered by roaudioplayer the roaudioplayer volume settings affect the audio decoder volume the audio stream is then sent to the assigned outputs, which have an additional level of volume control enabled by roaudiooutput the roaudiooutput object affects the absolute volume (as well as mute settings) for an audio output if two players are streaming to the same output, both will be affected by any settings implemented through roaudiooutput to control which audio outputs connect to audio player outputs generated by roaudiooutput , use the setpcmaudiooutputs() and setcompressedaudiooutputs() methods, which can be used for rovideoplayer and roaudioplayer see the roaudioplayer entry for further explanation of these methods