 |
RDK Documentation (Open Sourced RDK Components)
|
49 int main(
int argc,
char *argv[])
58 if ((argc < 4) || (argc > 5)) {
59 printf(
"%s : <Port Type - HDMI, SPEAKER> <Port Number-0, 1, 2...> <Mode - 0 - Off, 1 - On, 2 - Auto> <Boost 0-96 (required for On mode)>\r\n", argv[0]);
60 if((atoi((
const char *)argv[3]) == 1) && (argc != 5)) {
61 printf(
"%s: Surround virtualizer boost value required for Mode : 1 - On \r\n", argv[0]);
66 char *portType = argv[1];
67 char *portId = argv[2];
69 virtualizer.mode = atoi((
const char *)argv[3]);
70 virtualizer.boost = 0;
71 if(virtualizer.mode == 1) {
72 virtualizer.boost = atoi((
const char *)argv[4]);
76 printf(
"Sample Application: set Surround Virtualizer\r\n");
79 printf(
"Sample Application: set Surround Virtualizer complete\r\n");
82 printf(
"Exception Caught during [%s]\r\n", argv[0]);
void setSurroundVirtualizer(const dsSurroundVirtualizer_t virtualizer)
This API is used to set the surround virtualizer mode and boost value for a given audio port.
IARM_Result_t IARM_Bus_Term(void)
This API is used to terminate the IARM-Bus library.
It contains class referenced by manager.cpp file.
Device Settings HAL error codes.
Device Settings HAL utilities.
Class extending Enumerable to implement the audiooutputport interface.
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.
AudioOutputPort & getAudioOutputPort(const std::string &name)
This API is used to get the reference to the audio output port by its name. The name of the port must...
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.
IARM_Result_t IARM_Bus_Init(const char *name)
This API is used to initialize the IARM-Bus library.