Audio
The Audio module will allow to set the audio output mode in terms of where the audio decoding takes place, in the STB or in an external device (e.g. TV, amplifier). Important concepts:
PCM
Audio decoding takes place inside the STB. PCM samples are transmitted to the external device.
PASSTHROUGH
Audio decoding takes place in the external device.
Members
Audio decoding takes place inside the STB. PCM samples are transmitted to the external device.
OutputMode
Enum for audio output mode.
Properties:
| Name | Type | Description |
|---|---|---|
Stereo | PCM ALL | |
HDMI_SPDIF | PASSTHROUGH ALL | |
SPDIF | PASSTHROUGH SPDIF, PCM HDMI | |
HDMI | PASSTHROUGH HDMI |
Methods
getAudioOutputMode()
Get the active audio output mode.
Returns:
| Type | Description |
|---|---|
| A promise. | The completion handler will be passed the following arguments: - output_mode: The current audio OutputMode. |
setAudioOutputMode(output_mode)
Parameters:
| Name | Type | Description |
|---|---|---|
output_mode | OutputMode | The audio OutputMode to set. |
Returns:
| Type | Description |
|---|---|
| A promise. | No arguments are passed to the completion handler. |