|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
30 #include "dsHALConfig.h"
32 #include "audioOutputPortConfig.hpp"
33 #include "illegalArgumentException.hpp"
48 const char *_names[] = {
57 inline const bool isValid(
int id) {
70 const int AudioOutputPortType::kARC = dsAUDIOPORT_TYPE_HDMI_ARC;
93 return AudioOutputPortConfig::getInstance().getPortType(
id);
113 _name = std::string(_names[
id]);
191 for (
size_t i = 0; i <
_aPorts.size(); i++) {
192 if (
_aPorts.at(i).getIndex() == index) {
267 bool supported =
false;
270 for (
size_t j = 0; j < aStereoModes.
size(); j++)
274 if(newMode == aStereoModes.at(j).
getId())
@ dsAUDIOPORT_TYPE_SPEAKER
int _id
Indicates the id of the instance inheriting this class.
virtual ~AudioOutputPortType()
This is a default destructor of class AudioOutputPortType.
const List< AudioOutputPort > getPorts() const
This function is used to get the list of platform supported audio output ports.
List< AudioOutputPort > _aPorts
List of audio ports.
This class is implemented using templates and it is used to maintain a container with the list of sup...
void addPort(const AudioOutputPort &port)
This function is used to add the specified audio port to the list of supported audio ports.
This class extends DSConstant for implementing AudioCompression. It helps to maintain different audio...
List< AudioStereoMode > _stereoModes
List of stereo modes.
static AudioOutputPortType & getInstance(int id)
This function is used to get the instance of the AudioOutputPortType based on the port id,...
Device Settings HAL types.
List< AudioCompression > _compressions
List of compression types.
static bool isValid(int min, int max, int val)
This function checks if the given value lies between min and max values provided.
This class extends DSConstant to implement AudioStereoMode. It manages the information related to aud...
@ dsAUDIOPORT_TYPE_HEADPHONE
const List< AudioStereoMode > getSupportedStereoModes() const
This API is used to get the list of audio stereo modes supported by the audio port.
size_t size()
This function gets the size of the container.
Device Settings HAL utilities.
Class extending Enumerable to implement the audiooutputport interface.
void addCompression(const AudioCompression &compression)
This function is used to add the specified compression types to the list of supported compressions fo...
void addStereoMode(const AudioStereoMode &stereoMode)
This function is used to add the specified stereoMode types to the list of supported stereo modes for...
AudioOutputPortType(int id)
This is a default constructor of class AudioOutputPortType. It initializes the AudioOutputPortType in...
void addEncoding(const AudioEncoding &encoding)
This function is used to add the specified encoding types to the list of supported encodings for Audi...
std::string _name
Indicates the name string of the instance inheriting this class.
AudioOutputPort & getPort(int index)
This function is used to get the AudioOutputPort instance based on the index.
Class extending DSConstant to implement the audiooutputport interface.
const List< AudioEncoding > getSupportedEncodings() const
This API is used to get the list of audio encodings supported by the audio port .
bool isModeSupported(int newMode)
This function is used to find out if requested Audio mode is supported by Platform.
It contain variables,stuctures,class and functions referenced by audiooutputportType code.
This class extends Exception class to manage the expections caused due to illegal arguments.
This class extends DSConstant to implement AudioEncoding which manages audio encodings.
#define dsUTL_DIM(arr)
Device Settings general Array dimension calculation inline definition.
#define dsAudioType_isValid(t)
const List< AudioCompression > getSupportedCompressions() const
This API is used to get the list of audio compressions supported by the audio port.
virtual int getId() const
This function is used to get the id.
List< AudioEncoding > _encodings
List of encoding types.