|
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[] = {
52 inline const bool isValid(
int id) {
82 return AudioOutputPortConfig::getInstance().getCompression(
id);
104 for (
size_t i = 0; i <
dsUTL_DIM(_names); i++) {
105 if (name.compare(_names[i]) == 0) {
134 _name = std::string(_names[
id]);
int _id
Indicates the id of the instance inheriting this class.
This class extends DSConstant for implementing AudioCompression. It helps to maintain different audio...
Device Settings HAL types.
static const int kMax
Indicates number of audio compression supported.
static bool isValid(int min, int max, int val)
This function checks if the given value lies between min and max values provided.
static const AudioCompression & getInstance(int id)
This function gets an instance of AudioCompression against the specified id, only if the id passed is...
static const int kHeavy
Indicates heavy audio compression.
Device Settings HAL utilities.
AudioCompression(int id)
This function is a parameterised constructor. It initializes the AudioCompression instance with the p...
virtual ~AudioCompression()
This function is the default destructor for AudioCompression.
static const int kNone
Indicates audio compression None.
static const int kMedium
Indicates medium audio compression.
std::string _name
Indicates the name string of the instance inheriting this class.
#define dsAudioCompression_isValid(t)
static const int kLight
Indicates light audio compression.
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.
This file defines AudioCompression class for managing audio compression levels.