|
RDK Documentation (Open Sourced RDK Components)
|
49 int main(
int argc,
char *argv[])
59 printf(
"%s : <Ducking action 0-start 1-stop> <type 0-absolute 1-relative> <level 0-100>\r\n", argv[0]);
63 unsigned char action = (
unsigned char) atoi((
const char *)argv[1]);
64 unsigned char type = (
unsigned char) atoi((
const char *)argv[2]);
65 unsigned char level = (
unsigned char) atoi((
const char *)argv[3]);
68 printf(
"Sample Application: set Audio Ducking\r\n");
70 for (
size_t i = 0; i < aPorts.
size(); i++)
72 printf(
"setting ducking for port: %s\n",aPorts.at(i).
getName().c_str());
76 printf(
"Sample Application: set Audio Ducking is completed\r\n");
79 printf(
"Exception Caught during [%s]\r\n", argv[0]);
IARM_Result_t IARM_Bus_Term(void)
This API is used to terminate the IARM-Bus library.
enum _dsAudioDuckingType_t dsAudioDuckingType_t
It contains class referenced by manager.cpp file.
const std::string & getName() const
This API gets the name of the AudioOutputPort. The AudioOutputPort names can be IDLR,...
List< AudioOutputPort > getAudioOutputPorts()
This API is used to get the list of the audio output ports supported on the device....
Device Settings HAL error codes.
size_t size()
This function gets the size of the container.
Device Settings HAL utilities.
IARM_Result_t IARM_Bus_Disconnect(void)
This API disconnect Application from IARM Bus so the application will not receive any IARM event or R...
It contains structures and class referenced by the videoOutputportTypes.cpp file.
static void Initialize()
This API is used to initialize the Device Setting module. Each API should be called by any client of ...
RDK IARM-Bus API Declarations.
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...
It contains class and structure refrenced by the videooutputport.cpp file.
static void DeInitialize()
This API is used to deinitialize the device settings module. DeInitialize() must be called to release...
static Host & getInstance(void)
This API is used to get a reference to the single instance of the Host object.
IARM_Result_t IARM_Bus_Connect(void)
This API is used to connect application to the IARM bus daemon. After connected, the application can ...
It contain variables,stuctures,class and functions referenced by audiooutputport code.
enum _dsAudioDuckingAction_t dsAudioDuckingAction_t
IARM_Result_t IARM_Bus_Init(const char *name)
This API is used to initialize the IARM-Bus library.