|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
37 #include "audioOutputPortConfig.hpp"
38 #include "illegalArgumentException.hpp"
45 const char *_names[] = {
53 inline const bool isValid(
int id) {
85 return AudioOutputPortConfig::getInstance().getEncoding(
id);
105 for (
size_t i = 0; i <
dsUTL_DIM(_names); i++) {
106 if (name.compare(_names[i]) == 0) {
135 _name = std::string(_names[
id]);
int _id
Indicates the id of the instance inheriting this class.
AudioEncoding(int id)
This function is the default constructor for AudioEncoding. It initializes the instance with the id p...
static const AudioEncoding & getInstance(int id)
This function gets an AudioEncoding instance against the id parameter, only if the id passed is valid...
static const int kMax
Indicates the maximum encoding formats supported.
virtual ~AudioEncoding()
This function is the default destructor of AudioEncoding class.
static const int kDisplay
Value indicating digital audio encoding format.
Device Settings HAL types.
static const int kNone
Value indicating encoding type None.
#define dsAudioEncoding_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.
Device Settings HAL utilities.
std::string _name
Indicates the name string of the instance inheriting this class.
static const int kAC3
Value indicating AC3 digital audio encoding format.
static const int kPCM
Value indicating PCM digital audio encoding format.
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.
This file defines AudioEncoding class for managing audio encoding types.