Commit 1af33e1c authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

Implementing API changes for renderer and reproduction module getter

parent 37cd4f7a
......@@ -4682,22 +4682,24 @@ void CVACoreImpl::GetRenderingModules( std::vector< CVAAudioRendererInfo >& vRen
CVAAudioRendererInfo oRendererInfo;
oRendererInfo.sID = oRenderer.sID;
oRendererInfo.sClass = oRenderer.sClass;
vRenderers.push_back( oRendererInfo );
if( !bFilterEnabled || oRendererInfo.bEnabled )
vRenderers.push_back( oRendererInfo );
}
return;
}
void CVACoreImpl::GetReproductionModules( std::vector< CVAAudioRendererInfo >& vRepros, bool bFilterEnabled /* = true */ ) const
void CVACoreImpl::GetReproductionModules( std::vector< CVAAudioReproductionInfo >& vRepros, bool bFilterEnabled /* = true */ ) const
{
vRepros.clear();
for( size_t i=0; i<m_vReproductionModules.size(); i++ )
{
const CVAAudioReproductionModuleDesc& oRepro( m_vReproductionModules[i] );
CVAAudioRendererInfo oRepInfo;
CVAAudioReproductionInfo oRepInfo;
oRepInfo.sID = oRepro.sID;
oRepInfo.sClass = oRepro.sClass;
vRepros.push_back( oRepInfo );
if( !bFilterEnabled || oRepInfo.bEnabled )
vRepros.push_back( oRepInfo );
}
return;
......
......@@ -29,6 +29,7 @@
#include <ITATimer.h>
#include <VACore.h>
#include <VABaseDefinitions.h>
#include "VACoreConfig.h"
#include "VAObjectContainer.h"
#include "VAObject.h"
......@@ -392,14 +393,14 @@ public:
void SetPortalState(int iPortalID, double dState);
// Rendering
void GetRenderingModules( std::vector< CVAAudioRenderingModuleInfo >& ) const;
void GetRenderingModules( std::vector< CVAAudioRendererInfo >&, bool ) const;
void SetRenderingModuleMuted( const std::string& sModuleID, bool bMuted );
double GetRenderingModuleGain( const std::string& sModuleID ) const;
void SetRenderingModuleGain( const std::string& sModuleID, double dGain );
bool IsRenderingModuleMuted( const std::string& sModuleID ) const;
// Reproduction
void GetReproductionModules( std::vector< CVAAudioReproductionModuleInfo >& ) const;
void GetReproductionModules( std::vector< CVAAudioReproductionInfo >&, bool ) const;
void SetReproductionModuleMuted( const std::string& sModuleID, bool bMuted );
double GetReproductionModuleGain( const std::string& sModuleID ) const;
void SetReproductionModuleGain( const std::string& sModuleID, double dGain );
......
Supports Markdown
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