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

Fixes in base folder for mono renderer, also removed som warnings

parent d47d2a2c
......@@ -71,7 +71,7 @@ public:
return true;
}
bool EstimateOrientation( double dTime, VAVec3& vView, VAVec3& vUp )
bool EstimateOrientation( double, VAVec3& vView, VAVec3& vUp )
{
if( m_pLastState )
{
......@@ -82,7 +82,7 @@ public:
return false;
}
bool EstimateOrientation( double dTime, VAOrientYPR& oOrient )
bool EstimateOrientation( double, VAOrientYPR& oOrient )
{
if( m_pLastState )
{
......
......@@ -841,7 +841,8 @@ CVAMonauralFreeFieldAudioRenderer::CVAMFFListener* CVAMonauralFreeFieldAudioRend
if( m_bDumpListenerOutputSignals )
{
std::string sFileBaseName = m_oParams.sID + "_Listener" + IntToString( pListener->pData->iID ) + ".wav";
std::string sBaseFolder = "";
if( m_sBaseFolder.empty() == false )
sFileBaseName = m_sBaseFolder + "/" + sFileBaseName;
ITAAudiofileProperties props;
props.dSampleRate = m_pCore->GetCoreConfig()->oAudioDriverConfig.dSampleRate;
......@@ -1173,6 +1174,19 @@ double CVAMFFSoundPath::CalculateInverseDistanceDecrease() const
int CVAMonauralFreeFieldAudioRenderer::CallObject( const CVAStruct& oArgs, CVAStruct& oReturn )
{
oReturn.Clear();
if( oArgs.HasKey( "basefolder" ) )
{
if( oArgs[ "basefolder" ].IsString() )
{
std::string sNewBaseFolder = oArgs[ "basefolder" ];
VistaFileSystemDirectory oDir( sNewBaseFolder );
if( oDir.Exists() == false )
oDir.CreateWithParentDirectories();
m_sBaseFolder = sNewBaseFolder;
}
}
return -1;
}
#endif // (VACORE_WITH_RENDERER_MONAURAL_FREE_FIELD==1)
......@@ -94,7 +94,7 @@ public:
/**
* This method loads a scene, usually a file path to geometry data.
*/
void LoadScene( const std::string& sFilename ) {};
void LoadScene( const std::string& ) {};
//! Handle a scene state change
/**
......
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