Struct defining audio configuration.

#include <audioConfig.h>

Public Member Functions

 AudioConfig (dpyAudio::Parameter parameter, int value)
 initialization of the class More...
 
 AudioConfig ()
 initialization of the class
 
dpyAudio::Parameter getParameter () const
 
int getValue () const
 
void setValue (const int value)
 

Static Public Member Functions

static std::string parameterToString (dpyAudio::Parameter parameter)
 converts a parameter to string More...
 
static dpyAudio::Parameter stringToParameter (std::string parameter)
 converts a string into a parameter More...
 

Constructor & Destructor Documentation

AudioConfig ( dpyAudio::Parameter  parameter,
int  value 
)
Parameters
parameterparameter
valuevalue

Member Function Documentation

dpyAudio::Parameter getParameter ( ) const

Gets configuration parameter

Returns
configuration parameter
int getValue ( ) const

Gets configuration value

Returns
configuration value
static std::string parameterToString ( dpyAudio::Parameter  parameter)
static
Parameters
parameterparameter
Returns
string representing parameter text
void setValue ( const int  value)

Sets configuration value

Parameters
valuevalue to be set
static dpyAudio::Parameter stringToParameter ( std::string  parameter)
static
Parameters
parameterparameter
Returns
parameter representing the text