|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
38 #include "audioOutputPortConfig.hpp"
39 #include "illegalArgumentException.hpp"
47 const char *_names[] = {
57 inline const bool isValid(
int id) {
87 return AudioOutputPortConfig::getInstance().getStereoMode(
id);
107 for (
size_t i = 0; i <
dsUTL_DIM(_names); i++) {
108 if (name.compare(_names[i]) == 0) {
132 _name = std::string(_names[
id]);
int _id
Indicates the id of the instance inheriting this class.
static const int kStereo
Indicates audio mode of type stereo.
Device Settings HAL types.
static const int kDD
Indicates audio mode of type dolby digital.
virtual ~AudioStereoMode()
This function is the default destructor of AudioStereoMode class.
static const int kSurround
Indicates audio mode of type surround.
#define dsAudioStereoMode_isValid(t)
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...
Device Settings HAL utilities.
static const int kDDPlus
Indicates audio mode of type dolby digital plus.
This file defines AudioStereoMode class for managing audio mode types.
@ dsAUDIO_STEREO_SURROUND
static const AudioStereoMode & getInstance(int id)
This function gets an instance of AudioStereoMode against the specified id, only if the id passed is ...
std::string _name
Indicates the name string of the instance inheriting this class.
static const int kMax
Indicates maximum number of audio modes supported.
@ dsAUDIO_STEREO_PASSTHRU
AudioStereoMode(int id)
This function is a parameterised constructor of AudioStereoMode class. It initializes the instance wi...
static const int kMono
Indicates audio mode of type mono.
This class extends Exception class to manage the expections caused due to illegal arguments.
#define dsUTL_DIM(arr)
Device Settings general Array dimension calculation inline definition.
static const int kPassThru
Indicates audio mode of type pass through.