Refactoring

parent 8f478c3b
......@@ -1322,9 +1322,10 @@ public:
//! Returns the rendering module parameters
/**
* @param[in] sModuleID Module identifier
* @param[in] oParams Magic request parameters
* @retirn Magic parameters
*/
virtual CVAStruct GetRenderingModuleParameters( const std::string& sModuleID ) const = 0;
virtual CVAStruct GetRenderingModuleParameters( const std::string& sModuleID, const CVAStruct& oParams ) const = 0;
//! Returns all available reproductions (default: only those that are enabled)
......@@ -1374,9 +1375,10 @@ public:
//! Returns the reproduction module parameters
/**
* @param[in] sModuleID Module identifier
* @param[in] oParams Magic request parameters
* @retirn Magic parameters
*/
virtual CVAStruct GetReproductionModuleParameters( const std::string& sModuleID ) const = 0;
virtual CVAStruct GetReproductionModuleParameters( const std::string& sModuleID, const CVAStruct& oParams ) const = 0;
//! Returns the global audio interface input gain
......
......@@ -81,17 +81,17 @@ bool IVAInterface::AddSearchPath( const std::string& sPath )
return bPathFound;
}
bool IVAInterface::IsValidAuralizationMode( const int iAuralizationMode )
bool IVAInterface::GetAuralizationModeValid( const int iAuralizationMode )
{
return ( iAuralizationMode >= 0 ) && ( iAuralizationMode <= 2047 );
}
bool IVAInterface::IsValidVolume( const double dVolume )
bool IVAInterface::GetVolumeValid( const double dVolume )
{
return ( dVolume >= 0 );
}
bool IVAInterface::IsValidAudiofileSignalSourcePlaybackAction( const int iAction )
bool IVAInterface::GetSignalSourceBufferPlaybackActionValid( const int iAction )
{
if( iAction == IVAInterface::VA_PLAYBACK_ACTION_PAUSE )
return true;
......@@ -284,7 +284,7 @@ std::string IVAInterface::GetAuralizationModeStr( const int iAuralizationMode, c
{
std::stringstream ss;
if( !IsValidAuralizationMode( iAuralizationMode ) )
if( !GetAuralizationModeValid( iAuralizationMode ) )
{
ss << "Invalid auralization mode (" << iAuralizationMode << ")";
VA_EXCEPT2( INVALID_PARAMETER, ss.str() );
......@@ -335,7 +335,7 @@ std::string IVAInterface::GetAuralizationModeStr( const int iAuralizationMode, c
std::string IVAInterface::GetVolumeStrDecibel( const double dVolume )
{
if( !IsValidVolume( dVolume ) )
if( !GetVolumeValid( dVolume ) )
return "Invalid";
std::stringstream ss;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment