RDK Documentation (Open Sourced RDK Components)
audioOutputPort.hpp
Go to the documentation of this file.
1 /*
2  * If not stated otherwise in this file or this component's Licenses.txt file the
3  * following copyright and licenses apply:
4  *
5  * Copyright 2016 RDK Management
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18 */
19 
20 
21 /**
22 * @defgroup devicesettings
23 * @{
24 * @defgroup ds
25 * @{
26 **/
27 
28 
29 #ifndef _DS_AUDIOOUTPUTPORT_HPP_
30 #define _DS_AUDIOOUTPUTPORT_HPP_
31 
32 #include "audioEncoding.hpp"
33 #include "audioCompression.hpp"
34 #include "audioStereoMode.hpp"
35 #include "list.hpp"
36 #include "enumerable.hpp"
37 #include "dsTypes.h"
38 
39 #include "dsError.h"
40 
41 #include <string>
42 #include <stdint.h>
43 
44 
45 /**
46  * @file audioOutputPort.hpp
47  * @brief It contain variables,stuctures,class and functions referenced by audiooutputport code.
48  */
49 namespace device {
50 
51 class AudioOutputPortType;
52 class AudioOutputPortConfig;
53 
54 
55 /**
56  * @class AudioOutputPort
57  * @brief Class extending Enumerable to implement the audiooutputport interface.
58  * @ingroup devicesettingsclass
59  */
60 class AudioOutputPort : public Enumerable {
61  int _type; //!< Audiooutputporttype.
62  int _index; //!< Index of the audio output port.
63  int _id; //!< Port id.
64 
65  intptr_t _handle;
66  std::string _name;
67 
68  int _encoding; //!< Audio Encoding Types.
69  int _stereoMode; //!< Audio stereo mode Types.
70  uint32_t _audioDelayMs; //!< Audio delays
71  uint32_t _audioDelayOffsetMs; //!< Audio delay offset
72  bool _stereoAuto; //!< Audio stereo mode Types.
73 
74  float _gain; //!< Audio gain value.
75  float _db; //!< Audio decibel value.
76  float _maxDb; //!< Maximum audio decibel value.
77  float _minDb; //!< Minimum audio decibel value.
78  float _optimalLevel; //!< Optimal audio level.
79  float _level; //!< Audio level.
80 
81  bool _loopThru; //!< Method variable to check whether audio is loop thru or not.
82  bool _muted; //!< Method variable to check whether audio is muted or not.
83 
84 
85 public:
86 
87  static AudioOutputPort & getInstance(int id);
88  static AudioOutputPort & getInstance(const std::string &name);
89 
90  AudioOutputPort(const int type, const int index, const int id);
91  virtual ~AudioOutputPort();
92 
93  const AudioOutputPortType & getType() const;
94  int getId() const {return _id;};
95  int getIndex() const {return _index; };
96 
97 
98 /**
99  * @fn AudioOutputPort::getName() const
100  * @brief This API gets the name of the AudioOutputPort. The AudioOutputPort names can be
101  * IDLR, HDMI and SPDIF which are created and used by the implementation to uniquely identify them.
102  *
103  * @return _name Indicates the name of the AudioOutputPort
104  */
105  const std::string &getName() const {return _name;};
109 
110 
111  const AudioEncoding &getEncoding() const;
112  int getCompression() const;
113  int getDialogEnhancement() const;
114  bool getDolbyVolumeMode() const;
115  int getIntelligentEqualizerMode() const;
117  int getBassEnhancer() const;
118  bool isSurroundDecoderEnabled() const;
119  int getDRCMode() const;
121  bool getMISteering() const;
122  int getGraphicEqualizerMode() const;
123  const std::string getMS12AudioProfile() const;
124  std::vector<std::string> getMS12AudioProfileList() const;
125  const AudioStereoMode &getStereoMode(bool usePersist = false);
126 
127  dsError_t setEnablePort(bool enabled);
129  void enable();
130  void disable();
131 
132  bool getEnablePersist () const;
133  void setEnablePersist (bool isEnabled);
134 
135  bool getStereoAuto();
136 
137  float getGain() const;
138  float getDB() const;
139  float getLevel() const;
140  float getMaxDB() const;
141  float getMinDB() const;
142  float getOptimalLevel() const;
143  bool getAudioDelay(uint32_t& audioDelayMs) const;
144  bool getAudioDelayOffset(uint32_t& audioDelayOffsetMs) const;
145  bool isLoopThru() const;
146  bool isMuted() const;
147  bool isConnected() const;
148  bool isEnabled() const;
149 
150  bool isAudioMSDecode() const;
151  bool isAudioMS12Decode() const;
152 
153  void setEncoding(const int encoding);
154  void setCompression(const int compression);
155  void setDialogEnhancement(const int level);
156  void setDolbyVolumeMode(const bool mode);
157  void setIntelligentEqualizerMode(const int mode);
158  void setVolumeLeveller(const dsVolumeLeveller_t volLeveller);
159  void setBassEnhancer(const int boost);
160  void enableSurroundDecoder(const bool enable);
161  void setDRCMode(const int mode);
162  void setSurroundVirtualizer(const dsSurroundVirtualizer_t virtualizer);
163  void setMISteering(const bool enable);
164  void setGraphicEqualizerMode(const int mode);
165  void setMS12AudioProfile(std::string profile);
166 
167  void setStereoMode(const int mode, const bool toPersist = true);
168  void setStereoAuto(const bool autoMode, const bool toPersist = true);
169 
170  void setEncoding(const std::string & encoding);
171  void setStereoMode(const std::string & mode,const bool toPersist = true);
172  void getSupportedARCTypes(int *types);
173  void setSAD(std::vector<int> sad_list);
174  void enableARC(dsAudioARCTypes_t type, bool enable);
175  void enableMS12Config(const dsMS12FEATURE_t feature,const bool enable);
176  dsError_t enableLEConfig(const bool enable);
177  bool GetLEConfig();
178  void setAudioDelay(const uint32_t audioDelayMs);
179  void setAudioDelayOffset(const uint32_t audioDelayOffsetMs);
180  void getSinkDeviceAtmosCapability(dsATMOSCapability_t & atmosCapability);
181  void setAudioAtmosOutputMode(bool enable);
182 
183  void setAssociatedAudioMixing(const bool mixing);
184  void getAssociatedAudioMixing(bool *mixing);
185  void setFaderControl(const int mixerBalance);
186  void getFaderControl(int* mixerBalance);
187  void setPrimaryLanguage(const std::string pLang);
188  void getPrimaryLanguage(std::string &pLang);
189  void setSecondaryLanguage(const std::string sLang);
190  void getSecondaryLanguage(std::string &sLang);
191 
192  void setDB(const float db);
193  void setGain(const float newGain);
194  void setLevel(const float level);
195  void setLoopThru(const bool loopThru);
196  void setMuted(const bool mute);
197  void setAudioDucking(dsAudioDuckingAction_t action, dsAudioDuckingType_t, const unsigned char level);
198  void getAudioCapabilities(int *capabilities);
199  void getMS12Capabilities(int *capabilities);
200  void resetDialogEnhancement();
201  void resetBassEnhancer();
203  void resetVolumeLeveller();
204  void setMS12AudioProfileSetttingsOverride(const std::string ProfileState,const std::string ProfileName,
205  const std::string ProfileSettingsName, const std::string ProfileSettingValue);
206  void getHdmiArcPortId(int *portId);
207 };
208 
209 }
210 
211 #endif /* _DS_AUDIOOUTPUTPORT_HPP_ */
212 
213 
214 /** @} */
215 /** @} */
device::AudioOutputPort::isEnabled
bool isEnabled() const
This API is used to check whether the audio is enabled or not.
Definition: audioOutputPort.cpp:549
device::AudioOutputPort::enable
void enable()
This API is used to enable the Audio output port.
Definition: audioOutputPort.cpp:304
device::AudioOutputPort::setGain
void setGain(const float newGain)
This API is used to set the audio gain to be used in a given audio port.
Definition: audioOutputPort.cpp:1746
device::AudioOutputPort::getDialogEnhancement
int getDialogEnhancement() const
This API is used to get the current auto mode.
Definition: audioOutputPort.cpp:891
device::AudioOutputPort::setMS12AudioProfile
void setMS12AudioProfile(std::string profile)
This API is used to set MS12 Audio Profile.
Definition: audioOutputPort.cpp:1154
device::AudioOutputPort::getDB
float getDB() const
This API will get the current Decibel value for the given Audio port.
Definition: audioOutputPort.cpp:408
device::AudioOutputPort::setBassEnhancer
void setBassEnhancer(const int boost)
This API is used to adjust the Bass in a given audio port.
Definition: audioOutputPort.cpp:761
device::AudioOutputPort::setSurroundVirtualizer
void setSurroundVirtualizer(const dsSurroundVirtualizer_t virtualizer)
This API is used to set the surround virtualizer mode and boost value for a given audio port.
Definition: audioOutputPort.cpp:830
device::AudioOutputPort::setDRCMode
void setDRCMode(const int mode)
This API is used to set the Dynamic Range control mode in a given audio port.
Definition: audioOutputPort.cpp:807
device::AudioOutputPort::resetSurroundVirtualizer
void resetSurroundVirtualizer()
This API is used to reset the AudioOutput in a given audio port.
Definition: audioOutputPort.cpp:1974
device::AudioOutputPort::getMS12AudioProfileList
std::vector< std::string > getMS12AudioProfileList() const
This API is used to get the supported MS12 Audio profiles.
Definition: audioOutputPort.cpp:1173
device::AudioOutputPort::setDialogEnhancement
void setDialogEnhancement(const int level)
This API is used to set the compression mode in a given audio port.
Definition: audioOutputPort.cpp:669
device::AudioOutputPort::getSurroundVirtualizer
dsSurroundVirtualizer_t getSurroundVirtualizer() const
This API is used to get the Surround Virtualizer Boost value.
Definition: audioOutputPort.cpp:1035
device::AudioOutputPort::setSecondaryLanguage
void setSecondaryLanguage(const std::string sLang)
This API is used to set Secondary language.
Definition: audioOutputPort.cpp:1364
device::AudioOutputPort::getSecondaryLanguage
void getSecondaryLanguage(std::string &sLang)
This API is used to get the current AC4 Secondary language.
Definition: audioOutputPort.cpp:1386
device::AudioOutputPort::getSupportedStereoModes
const List< AudioStereoMode > getSupportedStereoModes() const
Definition: audioOutputPort.cpp:248
device::List
This class is implemented using templates and it is used to maintain a container with the list of sup...
Definition: list.hpp:51
device::AudioOutputPort::getSupportedCompressions
const List< AudioCompression > getSupportedCompressions() const
This API is used to get the list of audio compressions supported by the port.
Definition: audioOutputPort.cpp:236
device::AudioOutputPort::getDolbyVolumeMode
bool getDolbyVolumeMode() const
This API is used to get the current auto mode.
Definition: audioOutputPort.cpp:911
device::AudioOutputPort::setAudioAtmosOutputMode
void setAudioAtmosOutputMode(bool enable)
Definition: audioOutputPort.cpp:1505
device::AudioOutputPort::_audioDelayMs
uint32_t _audioDelayMs
Audio delays.
Definition: audioOutputPort.hpp:70
device::AudioOutputPort::_gain
float _gain
Audio gain value.
Definition: audioOutputPort.hpp:74
device::AudioOutputPort::getPrimaryLanguage
void getPrimaryLanguage(std::string &pLang)
This API is used to get the current Primary language.
Definition: audioOutputPort.cpp:1339
device::AudioOutputPort::getGain
float getGain() const
This API will get the current Gain for the given audio output port.
Definition: audioOutputPort.cpp:386
_dsVolumeLeveller_t
Definition: dsTypes.h:352
device::AudioOutputPort::getEncoding
const AudioEncoding & getEncoding() const
This API is used to get the current encoding of the output port.
Definition: audioOutputPort.cpp:260
dsAudioDuckingType_t
enum _dsAudioDuckingType_t dsAudioDuckingType_t
device::AudioOutputPort::getVolumeLeveller
dsVolumeLeveller_t getVolumeLeveller() const
This API is used to get the current volume leveller value.
Definition: audioOutputPort.cpp:952
device::AudioOutputPort::_maxDb
float _maxDb
Maximum audio decibel value.
Definition: audioOutputPort.hpp:76
device::AudioOutputPort::GetLEConfig
bool GetLEConfig()
This API is used to check if Loudness Equivalence is enabled or not*.
Definition: audioOutputPort.cpp:1636
device::AudioOutputPort::isConnected
bool isConnected() const
This API is used to check whether the audio output port is connected to a sink device or not.
Definition: audioOutputPort.cpp:572
dsTypes.h
Device Settings HAL types.
device::AudioOutputPort::getMS12Capabilities
void getMS12Capabilities(int *capabilities)
This API is used to query the MS12 capabilities of the device.
Definition: audioOutputPort.cpp:1912
device::AudioOutputPort::_optimalLevel
float _optimalLevel
Optimal audio level.
Definition: audioOutputPort.hpp:78
device::AudioOutputPort::getOptimalLevel
float getOptimalLevel() const
This API is used to get the current optimal level value for audio output port.
Definition: audioOutputPort.cpp:444
device::AudioOutputPort::getStereoMode
const AudioStereoMode & getStereoMode(bool usePersist=false)
This API is used to get the current stereo mode of the output port.
Definition: audioOutputPort.cpp:273
device::AudioOutputPort::_stereoAuto
bool _stereoAuto
Audio stereo mode Types.
Definition: audioOutputPort.hpp:72
device::AudioOutputPort::getLevel
float getLevel() const
This API is used to get the current audio level for the given audio output port.
Definition: audioOutputPort.cpp:492
device::AudioOutputPort::_minDb
float _minDb
Minimum audio decibel value.
Definition: audioOutputPort.hpp:77
device::AudioOutputPort::~AudioOutputPort
virtual ~AudioOutputPort()
This is a default destructor of class AudioOutputPort.
Definition: audioOutputPort.cpp:158
device::AudioOutputPort::resetDialogEnhancement
void resetDialogEnhancement()
This API is used to reset the AudioOutput in a given audio port.
Definition: audioOutputPort.cpp:1930
device::AudioOutputPort::getAssociatedAudioMixing
void getAssociatedAudioMixing(bool *mixing)
This API is used to get status of Associated Audio Mixing.
Definition: audioOutputPort.cpp:1235
device::AudioOutputPort::isLoopThru
bool isLoopThru() const
This API is used to check whether the given audio port is configured for loop thro'.
Definition: audioOutputPort.cpp:514
device::AudioOutputPort::getMISteering
bool getMISteering() const
This API is used to get status of Media Intelligent Steering.
Definition: audioOutputPort.cpp:1057
device::AudioOutputPort::getName
const std::string & getName() const
This API gets the name of the AudioOutputPort. The AudioOutputPort names can be IDLR,...
Definition: audioOutputPort.hpp:105
device::AudioOutputPort::setLevel
void setLevel(const float level)
This API is used to set the audio level to be used in a given audio port.
Definition: audioOutputPort.cpp:1771
device::AudioOutputPort::reInitializeAudioOutputPort
dsError_t reInitializeAudioOutputPort()
This API is used to reInitialize AudioOutputPort in case when Constructor miss out the Audio output p...
Definition: audioOutputPort.cpp:171
dsMS12FEATURE_t
enum _dsMS12FEATURE_t dsMS12FEATURE_t
device::AudioOutputPort::setPrimaryLanguage
void setPrimaryLanguage(const std::string pLang)
This API is used to set Primary language.
Definition: audioOutputPort.cpp:1317
device::AudioStereoMode
This class extends DSConstant to implement AudioStereoMode. It manages the information related to aud...
Definition: audioStereoMode.hpp:52
dsError.h
Device Settings HAL error codes.
device::AudioOutputPort::getType
const AudioOutputPortType & getType() const
This API is used to get the type of the audio output port. The type of audio output port represent th...
Definition: audioOutputPort.cpp:212
device::AudioOutputPort::setAssociatedAudioMixing
void setAssociatedAudioMixing(const bool mixing)
This API is used to enable/disable Associated Audio Mixing.
Definition: audioOutputPort.cpp:1215
device::AudioOutputPort::setAudioDelayOffset
void setAudioDelayOffset(const uint32_t audioDelayOffsetMs)
This API is used to set audio delay offset in milliseconds.
Definition: audioOutputPort.cpp:1473
device::AudioOutputPort
Class extending Enumerable to implement the audiooutputport interface.
Definition: audioOutputPort.hpp:60
device::AudioOutputPort::getInstance
static AudioOutputPort & getInstance(int id)
This API is used to get the instance of the audio output port based on the port id returned by the ge...
Definition: audioOutputPort.cpp:83
audioStereoMode.hpp
This file defines AudioStereoMode class for managing audio mode types.
device::AudioOutputPort::getSinkDeviceAtmosCapability
void getSinkDeviceAtmosCapability(dsATMOSCapability_t &atmosCapability)
Definition: audioOutputPort.cpp:1525
_dsSurroundVirtualizer_t
Definition: dsTypes.h:360
device::AudioOutputPort::setGraphicEqualizerMode
void setGraphicEqualizerMode(const int mode)
This API is used to set the compression mode in a given audio port.
Definition: audioOutputPort.cpp:1105
device::AudioOutputPort::resetVolumeLeveller
void resetVolumeLeveller()
This API is used to reset the AudioOutput in a given audio port.
Definition: audioOutputPort.cpp:1996
device::AudioOutputPort::_loopThru
bool _loopThru
Method variable to check whether audio is loop thru or not.
Definition: audioOutputPort.hpp:81
device::AudioOutputPort::setVolumeLeveller
void setVolumeLeveller(const dsVolumeLeveller_t volLeveller)
This API is used to set the volume leveller mode & amount for a given audio port.
Definition: audioOutputPort.cpp:738
device::AudioOutputPort::_id
int _id
Port id.
Definition: audioOutputPort.hpp:63
device::AudioOutputPort::getMinDB
float getMinDB() const
This API is used to get the current minimum decibel that Audio output port can support.
Definition: audioOutputPort.cpp:432
device::AudioOutputPort::getAudioDelayOffset
bool getAudioDelayOffset(uint32_t &audioDelayOffsetMs) const
This API is used to get the current audio delay offset in milliseconds for audio output port.
Definition: audioOutputPort.cpp:473
device::AudioOutputPort::enableSurroundDecoder
void enableSurroundDecoder(const bool enable)
This API is used to enable/disable surround decoder in a given audio port.
Definition: audioOutputPort.cpp:784
device::AudioOutputPort::isAudioMSDecode
bool isAudioMSDecode() const
This API is used to check whether the audio port supports Dolby MS11 Multistream Decode.
Definition: audioOutputPort.cpp:1859
device::AudioOutputPort::_encoding
int _encoding
Audio Encoding Types.
Definition: audioOutputPort.hpp:68
device::AudioOutputPortType
Class extending DSConstant to implement the audiooutputport interface.
Definition: audioOutputPortType.hpp:56
device::AudioOutputPort::isMuted
bool isMuted() const
This API is used to check whether the audio is muted or not.
Definition: audioOutputPort.cpp:530
device::Enumerable
This class is inherited by many classes in DS for getting the ID.
Definition: enumerable.hpp:46
device::AudioOutputPort::_audioDelayOffsetMs
uint32_t _audioDelayOffsetMs
Audio delay offset.
Definition: audioOutputPort.hpp:71
device::AudioOutputPort::_level
float _level
Audio level.
Definition: audioOutputPort.hpp:79
device::AudioOutputPort::getBassEnhancer
int getBassEnhancer() const
This API is used to get the Bass Enhancer boost value.
Definition: audioOutputPort.cpp:975
device::AudioOutputPort::setMuted
void setMuted(const bool mute)
This API is used to mute/unmute the audio. It throws an IllegalArgumentException if audio could not b...
Definition: audioOutputPort.cpp:1839
device::AudioOutputPort::setMISteering
void setMISteering(const bool enable)
This API is used to enable/disable the Media Intelligent Steering in a given audio port.
Definition: audioOutputPort.cpp:853
device::AudioOutputPort::setEncoding
void setEncoding(const int encoding)
This API is used to set the Encoding method in a given audio port.
Definition: audioOutputPort.cpp:608
device::AudioOutputPort::getDRCMode
int getDRCMode() const
This API is used to get the Dynamic Range Control mode.
Definition: audioOutputPort.cpp:1015
device::AudioOutputPort::getAudioDelay
bool getAudioDelay(uint32_t &audioDelayMs) const
This API is used to get the current audio delay in milliseconds for audio output port.
Definition: audioOutputPort.cpp:455
device::AudioOutputPort::setLoopThru
void setLoopThru(const bool loopThru)
This API is used to set the audio port to do loop thro.
Definition: audioOutputPort.cpp:1822
device::AudioOutputPort::setAudioDucking
void setAudioDucking(dsAudioDuckingAction_t action, dsAudioDuckingType_t, const unsigned char level)
This API is used to set the audio level to be used in a given audio port. If output mode is Passthrou...
Definition: audioOutputPort.cpp:1798
device::AudioOutputPort::getMS12AudioProfile
const std::string getMS12AudioProfile() const
This API is used to get the current MS12 Audio profile.
Definition: audioOutputPort.cpp:1125
dsAudioARCTypes_t
enum _dsAudioARCTypes_t dsAudioARCTypes_t
device::AudioOutputPort::_stereoMode
int _stereoMode
Audio stereo mode Types.
Definition: audioOutputPort.hpp:69
device::AudioOutputPort::setStereoAuto
void setStereoAuto(const bool autoMode, const bool toPersist=true)
This API is used to set the stereo mode to be auto;.
Definition: audioOutputPort.cpp:1683
device::AudioOutputPort::setIntelligentEqualizerMode
void setIntelligentEqualizerMode(const int mode)
This API is used to set the compression mode in a given audio port.
Definition: audioOutputPort.cpp:715
device::AudioOutputPort::AudioOutputPort
AudioOutputPort(const int type, const int index, const int id)
This function is a default constructor for AudioOutputPort. It initialises the data members of AudioO...
Definition: audioOutputPort.cpp:118
device::AudioOutputPort::_index
int _index
Index of the audio output port.
Definition: audioOutputPort.hpp:62
device::AudioOutputPort::getGraphicEqualizerMode
int getGraphicEqualizerMode() const
This API is used to get the current Graphical EQ mode.
Definition: audioOutputPort.cpp:1078
enumerable.hpp
This file defines Enumerable class.
device::AudioOutputPort::setAudioDelay
void setAudioDelay(const uint32_t audioDelayMs)
This API is used to set audio delay in milliseconds.
Definition: audioOutputPort.cpp:1436
device::AudioOutputPort::getSupportedEncodings
const List< AudioEncoding > getSupportedEncodings() const
This API is used to get the list of audio encodings supported by the port.
Definition: audioOutputPort.cpp:224
device::AudioOutputPort::_muted
bool _muted
Method variable to check whether audio is muted or not.
Definition: audioOutputPort.hpp:82
device::AudioOutputPort::enableARC
void enableARC(dsAudioARCTypes_t type, bool enable)
This function enables/disables ARC/EARC and routes audio to connected device.
Definition: audioOutputPort.cpp:1592
device::AudioOutputPort::getStereoAuto
bool getStereoAuto()
This API is used to get the current auto mode.
Definition: audioOutputPort.cpp:372
device::AudioOutputPort::resetBassEnhancer
void resetBassEnhancer()
This API is used to reset the AudioOutput in a given audio port.
Definition: audioOutputPort.cpp:1952
device::AudioOutputPort::setCompression
void setCompression(const int compression)
This API is used to set the compression mode in a given audio port.
Definition: audioOutputPort.cpp:648
device::AudioOutputPort::getAudioCapabilities
void getAudioCapabilities(int *capabilities)
This API is used to query the Audio capabilities of the device.
Definition: audioOutputPort.cpp:1897
device::AudioOutputPort::setSAD
void setSAD(std::vector< int > sad_list)
This function sets SAD(Short Audio Descriptor) to configure the best available audio format to send t...
Definition: audioOutputPort.cpp:1565
device::AudioOutputPort::setEnablePort
dsError_t setEnablePort(bool enabled)
This API is used to enable and disable the Audio output port.
Definition: audioOutputPort.cpp:289
device::AudioEncoding
This class extends DSConstant to implement AudioEncoding which manages audio encodings.
Definition: audioEncoding.hpp:51
device::AudioOutputPort::isSurroundDecoderEnabled
bool isSurroundDecoderEnabled() const
This API is used to get status of surround decoder.
Definition: audioOutputPort.cpp:995
device::AudioOutputPort::setStereoMode
void setStereoMode(const int mode, const bool toPersist=true)
This API is used to set the stereo mode to be used in a given audio port.If toPersist is true,...
Definition: audioOutputPort.cpp:1412
device::AudioOutputPort::getFaderControl
void getFaderControl(int *mixerBalance)
This API is used to get the mixerbalance betweeen main and associated audio.
Definition: audioOutputPort.cpp:1285
device::AudioOutputPort::getCompression
int getCompression() const
This API is used to get the current compression of the output port.
Definition: audioOutputPort.cpp:871
dsAudioDuckingAction_t
enum _dsAudioDuckingAction_t dsAudioDuckingAction_t
dsError_t
dsError_t
Device Settings API Error return codes.
Definition: dsError.h:84
device::AudioOutputPort::_type
int _type
Audiooutputporttype.
Definition: audioOutputPort.hpp:61
device::AudioOutputPort::setDB
void setDB(const float db)
This API is used to set the audio DB value to be used in a given audio port.
Definition: audioOutputPort.cpp:1719
device::AudioOutputPort::_db
float _db
Audio decibel value.
Definition: audioOutputPort.hpp:75
audioCompression.hpp
This file defines AudioCompression class for managing audio compression levels.
device::AudioOutputPort::setFaderControl
void setFaderControl(const int mixerBalance)
This API is used to set the mixerbalance betweeen main and associated audio.
Definition: audioOutputPort.cpp:1267
device::AudioOutputPort::getSupportedARCTypes
void getSupportedARCTypes(int *types)
This API is used to query the supported ARC types of the connected device.
Definition: audioOutputPort.cpp:1548
device::AudioOutputPort::getMaxDB
float getMaxDB() const
This API is used to get the current Maximum decibel that Audio output port can support.
Definition: audioOutputPort.cpp:420
device::AudioOutputPort::enableLEConfig
dsError_t enableLEConfig(const bool enable)
This API is used to enable Loudness Equivalence *.
Definition: audioOutputPort.cpp:1615
device::AudioOutputPort::getHdmiArcPortId
void getHdmiArcPortId(int *portId)
This API is used to query the HDMI ARC Port ID.
Definition: audioOutputPort.cpp:2043
device::AudioOutputPort::enableMS12Config
void enableMS12Config(const dsMS12FEATURE_t feature, const bool enable)
This API is used to enable MS12 features such as DAPV2 adn DE *.
Definition: audioOutputPort.cpp:1658
audioEncoding.hpp
This file defines AudioEncoding class for managing audio encoding types.
device::AudioOutputPort::setDolbyVolumeMode
void setDolbyVolumeMode(const bool mode)
This API is used to set the compression mode in a given audio port.
Definition: audioOutputPort.cpp:692