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

Merge branch 'big_2017_api_change' of https://git.rwth-aachen.de/ita/VACore...

Merge branch 'big_2017_api_change' of https://git.rwth-aachen.de/ita/VACore into big_2017_api_change
parents c8efffa6 12ce4405
...@@ -144,8 +144,8 @@ if( NOT DEFINED ITA_VACORE_WITH_RENDERER_BINAURAL_AIR_TRAFFIC_NOISE ) ...@@ -144,8 +144,8 @@ if( NOT DEFINED ITA_VACORE_WITH_RENDERER_BINAURAL_AIR_TRAFFIC_NOISE )
set( ITA_VACORE_WITH_RENDERER_BINAURAL_AIR_TRAFFIC_NOISE ON CACHE BOOL "Build VACore with rendering module: air traffic noise (VATSS)" ) set( ITA_VACORE_WITH_RENDERER_BINAURAL_AIR_TRAFFIC_NOISE ON CACHE BOOL "Build VACore with rendering module: air traffic noise (VATSS)" )
endif( ) endif( )
if( NOT DEFINED ITA_VACORE_WITH_RENDERER_MONAURAL_FREE_FIELD ) if( NOT DEFINED ITA_VACORE_WITH_RENDERER_PROTOTYPE_FREE_FIELD )
set( ITA_VACORE_WITH_RENDERER_MONAURAL_FREE_FIELD ON CACHE BOOL "Build VACore with rendering module: monaural free-field" ) set( ITA_VACORE_WITH_RENDERER_PROTOTYPE_FREE_FIELD ON CACHE BOOL "Build VACore with rendering module: prototype free-field" )
endif( ) endif( )
if( NOT DEFINED ITA_VACORE_WITH_RENDERER_PROTOTYPE_DUMMY ) if( NOT DEFINED ITA_VACORE_WITH_RENDERER_PROTOTYPE_DUMMY )
...@@ -224,14 +224,14 @@ add_definitions( "-DVACORE_DEFAULT_LOG_LEVEL=${ITA_VACORE_DEFAULT_DEBUG_LEVEL}" ...@@ -224,14 +224,14 @@ add_definitions( "-DVACORE_DEFAULT_LOG_LEVEL=${ITA_VACORE_DEFAULT_DEBUG_LEVEL}"
add_definitions( "-DVACORE_VERSION_MAJOR=\"${ITA_VACORE_VERSION_MAJOR}\"" ) add_definitions( "-DVACORE_VERSION_MAJOR=\"${ITA_VACORE_VERSION_MAJOR}\"" )
add_definitions( "-DVACORE_VERSION_MINOR=\"${ITA_VACORE_VERSION_MINOR}\"" ) add_definitions( "-DVACORE_VERSION_MINOR=\"${ITA_VACORE_VERSION_MINOR}\"" )
if( ${ITA_VACORE_MODULE_INTERFACE_ENABLED} ) if( ITA_VACORE_MODULE_INTERFACE_ENABLED )
add_definitions( "-DVACORE_MODULE_INTERFACE_ENABLED=1" ) add_definitions( "-DVACORE_MODULE_INTERFACE_ENABLED" )
endif( ) endif( )
if( ${ITA_VACORE_NO_MODULE_INTERFACE_THROW_EXCEPTION} ) if( ITA_VACORE_NO_MODULE_INTERFACE_THROW_EXCEPTION )
add_definitions( "-DVACORE_NO_MODULE_INTERFACE_THROW_EXCEPTION=1" ) add_definitions( "-DVACORE_NO_MODULE_INTERFACE_THROW_EXCEPTION" )
endif( ) endif( )
if( ${ITA_VACORE_EVENTS_ENABLED} ) if( ITA_VACORE_EVENTS_ENABLED )
add_definitions( "-DVACORE_EVENTS_ENABLED=1" ) add_definitions( "-DVACORE_EVENTS_ENABLED" )
endif( ) endif( )
add_definitions( "-DVACORE_DEFAULT_CONFIGFILE=\"${ITA_VACORE_DEFAULT_CONFIG_FILE_NAME}\"" ) add_definitions( "-DVACORE_DEFAULT_CONFIGFILE=\"${ITA_VACORE_DEFAULT_CONFIG_FILE_NAME}\"" )
...@@ -249,66 +249,66 @@ if( ITA_VACORE_WITH_AUDIO_BACKEND_DUMMY ) ...@@ -249,66 +249,66 @@ if( ITA_VACORE_WITH_AUDIO_BACKEND_DUMMY )
endif( ) endif( )
# Rendering definitions # Rendering definitions
if( ${ITA_VACORE_WITH_RENDERER_AMBIENT_MIXER} ) if( ITA_VACORE_WITH_RENDERER_AMBIENT_MIXER )
add_definitions( "-DVACORE_WITH_RENDERER_AMBIENT_MIXER=1" ) add_definitions( "-DVACORE_WITH_RENDERER_AMBIENT_MIXER" )
endif( ) endif( )
if( ${ITA_VACORE_WITH_RENDERER_AMBISONICS_FREE_FIELD} ) if( ITA_VACORE_WITH_RENDERER_AMBISONICS_FREE_FIELD )
add_definitions( "-DVACORE_WITH_RENDERER_AMBISONICS_FREE_FIELD=1" ) add_definitions( "-DVACORE_WITH_RENDERER_AMBISONICS_FREE_FIELD" )
endif( ) endif( )
if( ${ITA_VACORE_WITH_RENDERER_BINAURAL_FREE_FIELD} ) if( ITA_VACORE_WITH_RENDERER_BINAURAL_FREE_FIELD )
add_definitions( "-DVACORE_WITH_RENDERER_BINAURAL_FREE_FIELD=1" ) add_definitions( "-DVACORE_WITH_RENDERER_BINAURAL_FREE_FIELD" )
endif( ) endif( )
if( ${ITA_VACORE_WITH_RENDERER_BINAURAL_ARTIFICIAL_REVERB} ) if( ITA_VACORE_WITH_RENDERER_BINAURAL_ARTIFICIAL_REVERB )
add_definitions( "-DVACORE_WITH_RENDERER_BINAURAL_ARTIFICIAL_REVERB=1" ) add_definitions( "-DVACORE_WITH_RENDERER_BINAURAL_ARTIFICIAL_REVERB" )
endif( ) endif( )
if( ${ITA_VACORE_WITH_RENDERER_BINAURAL_ROOM_ACOUSTICS} ) if( ITA_VACORE_WITH_RENDERER_BINAURAL_ROOM_ACOUSTICS )
if( RAVENNET_FOUND ) if( RAVENNET_FOUND )
vista_use_package( RavenNet REQUIRED FIND_DEPENDENCIES ) vista_use_package( RavenNet REQUIRED FIND_DEPENDENCIES )
add_definitions( "-DVACORE_WITH_RENDERER_BINAURAL_ROOM_ACOUSTICS=1" ) add_definitions( "-DVACORE_WITH_RENDERER_BINAURAL_ROOM_ACOUSTICS" )
else( RAVENNET_FOUND ) else( )
message( "Could not find RavenNet, which is required by binaural room acoustics audio renderer" ) message( "Could not find RavenNet, which is required by binaural room acoustics audio renderer" )
endif( RAVENNET_FOUND ) endif( )
endif( ) endif( )
if( ${ITA_VACORE_WITH_RENDERER_BINAURAL_AIR_TRAFFIC_NOISE} ) if( ITA_VACORE_WITH_RENDERER_BINAURAL_AIR_TRAFFIC_NOISE )
add_definitions( "-DVACORE_WITH_RENDERER_BINAURAL_AIR_TRAFFIC_NOISE" ) add_definitions( "-DVACORE_WITH_RENDERER_BINAURAL_AIR_TRAFFIC_NOISE" )
endif( ) endif( )
if( ${ITA_VACORE_WITH_RENDERER_MONAURAL_FREE_FIELD} ) if( ITA_VACORE_WITH_RENDERER_PROTOTYPE_FREE_FIELD )
add_definitions( "-DVACORE_WITH_RENDERER_MONAURAL_FREE_FIELD=1" ) add_definitions( "-DVACORE_WITH_RENDERER_PROTOTYPE_FREE_FIELD" )
endif( ) endif( )
if( ${ITA_VACORE_WITH_RENDERER_PROTOTYPE_DUMMY} ) if( ITA_VACORE_WITH_RENDERER_PROTOTYPE_DUMMY )
add_definitions( "-DVACORE_WITH_RENDERER_PROTOTYPE_DUMMY=1" ) add_definitions( "-DVACORE_WITH_RENDERER_PROTOTYPE_DUMMY" )
endif( ) endif( )
if( ${ITA_VACORE_WITH_RENDERER_PROTOTYPE_HEARING_AID} ) if( ITA_VACORE_WITH_RENDERER_PROTOTYPE_HEARING_AID )
add_definitions( "-DVACORE_WITH_RENDERER_PROTOTYPE_HEARING_AID=1" ) add_definitions( "-DVACORE_WITH_RENDERER_PROTOTYPE_HEARING_AID" )
endif( ) endif( )
if( ${ITA_VACORE_WITH_RENDERER_PROTOTYPE_GENERIC_PATH} ) if( ITA_VACORE_WITH_RENDERER_PROTOTYPE_GENERIC_PATH )
add_definitions( "-DVACORE_WITH_RENDERER_PROTOTYPE_GENERIC_PATH=1" ) add_definitions( "-DVACORE_WITH_RENDERER_PROTOTYPE_GENERIC_PATH" )
endif( ) endif( )
if( ${ITA_VACORE_WITH_RENDERER_VBAP_FREE_FIELD} ) if( ITA_VACORE_WITH_RENDERER_VBAP_FREE_FIELD )
add_definitions( "-DVACORE_WITH_RENDERER_VBAP_FREE_FIELD=1" ) add_definitions( "-DVACORE_WITH_RENDERER_VBAP_FREE_FIELD" )
endif( ) endif( )
# Reproduction definitions # Reproduction definitions
if( ${ITA_VACORE_WITH_REPRODUCTION_TALKTHROUGH} ) if( ITA_VACORE_WITH_REPRODUCTION_TALKTHROUGH )
add_definitions( "-DVACORE_WITH_REPRODUCTION_TALKTHROUGH=1" ) add_definitions( "-DVACORE_WITH_REPRODUCTION_TALKTHROUGH" )
endif( ) endif( )
if( ${ITA_VACORE_WITH_REPRODUCTION_HEADPHONES} ) if( ITA_VACORE_WITH_REPRODUCTION_HEADPHONES )
add_definitions( "-DVACORE_WITH_REPRODUCTION_HEADPHONES=1" ) add_definitions( "-DVACORE_WITH_REPRODUCTION_HEADPHONES" )
endif( ) endif( )
if( ${ITA_VACORE_WITH_REPRODUCTION_AMBISONICS} ) if( ITA_VACORE_WITH_REPRODUCTION_AMBISONICS )
add_definitions( "-DVACORE_WITH_REPRODUCTION_AMBISONICS=1" ) add_definitions( "-DVACORE_WITH_REPRODUCTION_AMBISONICS" )
endif( ) endif( )
if( ${ITA_VACORE_WITH_REPRODUCTION_BINAURAL_NCTC} ) if( ITA_VACORE_WITH_REPRODUCTION_BINAURAL_NCTC )
add_definitions( "-DVACORE_WITH_REPRODUCTION_BINAURAL_NCTC=1" ) add_definitions( "-DVACORE_WITH_REPRODUCTION_BINAURAL_NCTC" )
endif( ) endif( )
if( ${ITA_VACORE_WITH_REPRODUCTION_BINAURAL_MIXDOWN} ) if( ITA_VACORE_WITH_REPRODUCTION_BINAURAL_MIXDOWN )
add_definitions( "-DVACORE_WITH_REPRODUCTION_BINAURAL_MIXDOWN=1" ) add_definitions( "-DVACORE_WITH_REPRODUCTION_BINAURAL_MIXDOWN" )
endif( ) endif( )
if( ${ITA_VACORE_WITH_REPRODUCTION_AMBISONICS_BINAURAL_MIXDOWN} ) if( ITA_VACORE_WITH_REPRODUCTION_AMBISONICS_BINAURAL_MIXDOWN )
add_definitions( "-DVACORE_WITH_REPRODUCTION_AMBISONICS_BINAURAL_MIXDOWN=1" ) add_definitions( "-DVACORE_WITH_REPRODUCTION_AMBISONICS_BINAURAL_MIXDOWN" )
endif( ) endif( )
if( ${ITA_VACORE_WITH_REPRODUCTION_MIXER_LOW_FREQUENCY} ) if( ITA_VACORE_WITH_REPRODUCTION_MIXER_LOW_FREQUENCY )
add_definitions( "-DVACORE_WITH_REPRODUCTION_MIXER_LOW_FREQUENCY=1" ) add_definitions( "-DVACORE_WITH_REPRODUCTION_MIXER_LOW_FREQUENCY" )
endif( ) endif( )
string( TIMESTAMP VACORE_CMAKE_DATE "%Y-%m-%d" ) string( TIMESTAMP VACORE_CMAKE_DATE "%Y-%m-%d" )
......
...@@ -172,7 +172,7 @@ protected: ...@@ -172,7 +172,7 @@ protected:
private: private:
const Config m_oConf; const Config m_oConf;
CVABasicMotionModel & operator=( const CVABasicMotionModel & ) { VA_EXCEPT_NOT_IMPLEMENTED; }; inline CVABasicMotionModel & operator=( const CVABasicMotionModel & ) { VA_EXCEPT_NOT_IMPLEMENTED; };
}; };
#endif // IW_VACORE_MOTIONMODELBASE #endif // IW_VACORE_MOTIONMODELBASE
...@@ -15,7 +15,8 @@ ...@@ -15,7 +15,8 @@
#include "../Scene/VAMotionState.h" #include "../Scene/VAMotionState.h"
#if (VA_MOTIONMODEL_DATA_LOG_ESTIMATED == 1) #ifdef VA_MOTIONMODEL_DATA_LOG_ESTIMATED
std::ostream& CVASampleAndHoldMotionModel::MotionLogDataOutput::outputDesc(std::ostream& os) const std::ostream& CVASampleAndHoldMotionModel::MotionLogDataOutput::outputDesc(std::ostream& os) const
{ {
os << "Estimation time" << "\t" os << "Estimation time" << "\t"
...@@ -31,9 +32,10 @@ std::ostream& CVASampleAndHoldMotionModel::MotionLogDataOutput::outputData(std:: ...@@ -31,9 +32,10 @@ std::ostream& CVASampleAndHoldMotionModel::MotionLogDataOutput::outputData(std::
os << dTime << "\t" << vPos.x << "\t" << vPos.y << "\t" << vPos.z << std::endl; os << dTime << "\t" << vPos.x << "\t" << vPos.y << "\t" << vPos.z << std::endl;
return os; return os;
} }
#endif #endif
#if (VA_MOTIONMODEL_DATA_LOG_INPUT== 1) #ifdef VA_MOTIONMODEL_DATA_LOG_INPUT
std::ostream& CVASampleAndHoldMotionModel::MotionLogDataInput::outputDesc(std::ostream& os) const std::ostream& CVASampleAndHoldMotionModel::MotionLogDataInput::outputDesc(std::ostream& os) const
{ {
os << "Input time" << "\t" os << "Input time" << "\t"
......
...@@ -28,10 +28,10 @@ public: ...@@ -28,10 +28,10 @@ public:
, m_dStartTime( 0 ) , m_dStartTime( 0 )
{ {
char buf1[ 255 ]; char buf1[ 255 ];
sprintf( buf1, "SampleAndHoldMotionModel_Estimation_0x%08Xh.log", this ); sprintf( buf1, "SampleAndHoldMotionModel_Estimation_0x%08Xh.log", int( this ) );
m_oEstimationDataLog.setOutputFile( buf1 ); m_oEstimationDataLog.setOutputFile( buf1 );
char buf2[ 255 ]; char buf2[ 255 ];
sprintf( buf2, "SampleAndHoldMotionModel_Input_0x%08Xh.log", this ); sprintf( buf2, "SampleAndHoldMotionModel_Input_0x%08Xh.log", int( this ) );
m_oInputDataLog.setOutputFile( buf2 ); m_oInputDataLog.setOutputFile( buf2 );
}; };
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include <assert.h> #include <assert.h>
#include <string> #include <string>
#if( VACORE_WITH_RENDERER_AMBIENT_MIXER == 1 ) #ifdef VACORE_WITH_RENDERER_AMBIENT_MIXER
CVAAmbientMixerAudioRenderer::CVAAmbientMixerAudioRenderer( const CVAAudioRendererInitParams& oParams_ ) CVAAmbientMixerAudioRenderer::CVAAmbientMixerAudioRenderer( const CVAAudioRendererInitParams& oParams_ )
: m_oParams( oParams_ ) : m_oParams( oParams_ )
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#ifndef IW_VACORE_AMBIENT_MIXER_AUDIO_RENDERER #ifndef IW_VACORE_AMBIENT_MIXER_AUDIO_RENDERER
#define IW_VACORE_AMBIENT_MIXER_AUDIO_RENDERER #define IW_VACORE_AMBIENT_MIXER_AUDIO_RENDERER
#if( VACORE_WITH_RENDERER_AMBIENT_MIXER == 1 ) #ifdef VACORE_WITH_RENDERER_AMBIENT_MIXER
// VA includes // VA includes
#include "../../VAAudioRenderer.h" #include "../../VAAudioRenderer.h"
...@@ -52,9 +52,9 @@ private: ...@@ -52,9 +52,9 @@ private:
CVASceneState* m_pNewSceneState; CVASceneState* m_pNewSceneState;
CVASceneState* m_pCurSceneState; CVASceneState* m_pCurSceneState;
ITAAtomicBool m_bIndicateReset, m_bResetAck; ITAAtomicBool m_bIndicateReset, m_bResetAck;
CVAAmbientMixerAudioRenderer operator=( const CVAAmbientMixerAudioRenderer & ) { VA_EXCEPT_NOT_IMPLEMENTED; }; inline CVAAmbientMixerAudioRenderer operator=( const CVAAmbientMixerAudioRenderer & ) { VA_EXCEPT_NOT_IMPLEMENTED; };
}; };
#endif // ( VACORE_WITH_RENDERER_AMBIENT_MIXER == 1 ) #endif // VACORE_WITH_RENDERER_AMBIENT_MIXER
#endif // IW_VACORE_AMBIENT_MIXER_AUDIO_RENDERER #endif // IW_VACORE_AMBIENT_MIXER_AUDIO_RENDERER
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#include "VAAmbisonicsFreefieldAudioRenderer.h" #include "VAAmbisonicsFreefieldAudioRenderer.h"
#if ( VACORE_WITH_RENDERER_AMBISONICS_FREE_FIELD == 1 ) #ifdef VACORE_WITH_RENDERER_AMBISONICS_FREE_FIELD
// VA includes // VA includes
#include "../../../directivities/VADirectivity.h" #include "../../../directivities/VADirectivity.h"
...@@ -125,7 +125,7 @@ public: ...@@ -125,7 +125,7 @@ public:
CVAAmbisonicsFreeFieldAudioRenderer::CVAAFFSource* pSource; CVAAmbisonicsFreeFieldAudioRenderer::CVAAFFSource* pSource;
CVAAmbisonicsFreeFieldAudioRenderer::CVAAFFListener* pListener; CVAAmbisonicsFreeFieldAudioRenderer::CVAAFFListener* pListener;
CVASourceListenerMetrics oRelations; //!< Informationen on source and receiver relations (distances & angles) CVASourceReceiverMetrics oRelations; //!< Informationen on source and receiver relations (distances & angles)
CDirectivityState oDirectivityStateCur; CDirectivityState oDirectivityStateCur;
CDirectivityState oDirectivityStateNew; CDirectivityState oDirectivityStateNew;
...@@ -216,6 +216,9 @@ public: ...@@ -216,6 +216,9 @@ public:
private: private:
CVACoreImpl* m_pCore; CVACoreImpl* m_pCore;
const CVAAmbisonicsFreeFieldAudioRenderer::CVAAFFListener::Config& m_oListenerConf; const CVAAmbisonicsFreeFieldAudioRenderer::CVAAFFListener::Config& m_oListenerConf;
//! Not for use, avoid C4512
CVAAFFListenerPoolFactory operator=( const CVAAFFListenerPoolFactory & ) { VA_EXCEPT_NOT_IMPLEMENTED; }
}; };
class CVAAFFSourcePoolFactory : public IVAPoolObjectFactory class CVAAFFSourcePoolFactory : public IVAPoolObjectFactory
...@@ -234,6 +237,9 @@ public: ...@@ -234,6 +237,9 @@ public:
private: private:
const CVAAmbisonicsFreeFieldAudioRenderer::CVAAFFSource::Config& m_oSourceConf; const CVAAmbisonicsFreeFieldAudioRenderer::CVAAFFSource::Config& m_oSourceConf;
//! Not for use, avoid C4512
CVAAFFSourcePoolFactory operator=( const CVAAFFSourcePoolFactory & ) { VA_EXCEPT_NOT_IMPLEMENTED; }
}; };
// Renderer // Renderer
...@@ -491,8 +497,8 @@ void CVAAmbisonicsFreeFieldAudioRenderer::ManageSoundPaths( const CVASceneState* ...@@ -491,8 +497,8 @@ void CVAAmbisonicsFreeFieldAudioRenderer::ManageSoundPaths( const CVASceneState*
if( bDeletetionRequired == false ) if( bDeletetionRequired == false )
{ {
// Receiver deleted? // Receiver deleted?
std::vector< int >::const_iterator citr = pDiff->viDelListenerIDs.begin(); std::vector< int >::const_iterator citr = pDiff->viDelReceiverIDs.begin();
while( citr != pDiff->viDelListenerIDs.end() ) while( citr != pDiff->viDelReceiverIDs.end() )
{ {
const int& iIDListenerDeleted( *citr++ ); const int& iIDListenerDeleted( *citr++ );
if( iListenerID == iIDListenerDeleted ) if( iListenerID == iIDListenerDeleted )
...@@ -523,8 +529,8 @@ void CVAAmbisonicsFreeFieldAudioRenderer::ManageSoundPaths( const CVASceneState* ...@@ -523,8 +529,8 @@ void CVAAmbisonicsFreeFieldAudioRenderer::ManageSoundPaths( const CVASceneState*
} }
// Deleted receivers // Deleted receivers
std::vector< int >::const_iterator citr = pDiff->viDelListenerIDs.begin(); std::vector< int >::const_iterator citr = pDiff->viDelReceiverIDs.begin();
while( citr != pDiff->viDelListenerIDs.end() ) while( citr != pDiff->viDelReceiverIDs.end() )
{ {
const int& iID( *citr++ ); const int& iID( *citr++ );
DeleteListener( iID ); DeleteListener( iID );
...@@ -543,16 +549,16 @@ void CVAAmbisonicsFreeFieldAudioRenderer::ManageSoundPaths( const CVASceneState* ...@@ -543,16 +549,16 @@ void CVAAmbisonicsFreeFieldAudioRenderer::ManageSoundPaths( const CVASceneState*
} }
// New receivers // New receivers
citr = pDiff->viNewListenerIDs.begin(); citr = pDiff->viNewReceiverIDs.begin();
while( citr != pDiff->viNewListenerIDs.end() ) while( citr != pDiff->viNewReceiverIDs.end() )
{ {
const int& iID( *citr++ ); const int& iID( *citr++ );
CVAAFFListener* pListener = CreateListener( iID, pNewScene->GetListenerState( iID ) ); CVAAFFListener* pListener = CreateListener( iID, pNewScene->GetReceiverState( iID ) );
} }
// New paths: (1) new receivers, current sources // New paths: (1) new receivers, current sources
citr = pDiff->viNewListenerIDs.begin(); citr = pDiff->viNewReceiverIDs.begin();
while( citr != pDiff->viNewListenerIDs.end() ) while( citr != pDiff->viNewReceiverIDs.end() )
{ {
int iListenerID = ( *citr++ ); int iListenerID = ( *citr++ );
CVAAFFListener* pListener = m_mListeners[ iListenerID ]; CVAAFFListener* pListener = m_mListeners[ iListenerID ];
...@@ -584,9 +590,9 @@ void CVAAmbisonicsFreeFieldAudioRenderer::ManageSoundPaths( const CVASceneState* ...@@ -584,9 +590,9 @@ void CVAAmbisonicsFreeFieldAudioRenderer::ManageSoundPaths( const CVASceneState*
continue; // Explicit source is not connected to this renderer continue; // Explicit source is not connected to this renderer
CVAAFFSource* pSource = it->second; CVAAFFSource* pSource = it->second;
for( size_t i = 0; i < pDiff->viComListenerIDs.size(); i++ ) for( size_t i = 0; i < pDiff->viComReceiverIDs.size(); i++ )
{ {
int iListenerID = pDiff->viComListenerIDs[ i ]; int iListenerID = pDiff->viComReceiverIDs[ i ];
CVAAFFListener* pListener = m_mListeners[ iListenerID ]; CVAAFFListener* pListener = m_mListeners[ iListenerID ];
if( !pListener->bDeleted ) if( !pListener->bDeleted )
CVAAFFSoundPath* pPath = CreateSoundPath( pSource, pListener ); CVAAFFSoundPath* pPath = CreateSoundPath( pSource, pListener );
...@@ -606,8 +612,8 @@ void CVAAmbisonicsFreeFieldAudioRenderer::ManageSoundPaths( const CVASceneState* ...@@ -606,8 +612,8 @@ void CVAAmbisonicsFreeFieldAudioRenderer::ManageSoundPaths( const CVASceneState*
CVAAFFSource* pSource = it->second; CVAAFFSource* pSource = it->second;
assert( pSource ); assert( pSource );
citr = pDiff->viNewListenerIDs.begin(); citr = pDiff->viNewReceiverIDs.begin();
while( citr != pDiff->viNewListenerIDs.end() ) while( citr != pDiff->viNewReceiverIDs.end() )
{ {
const int& iListenerID( *citr++ ); const int& iListenerID( *citr++ );
CVAAFFListener* pListener = m_mListeners[ iListenerID ]; CVAAFFListener* pListener = m_mListeners[ iListenerID ];
...@@ -672,7 +678,7 @@ void CVAAmbisonicsFreeFieldAudioRenderer::HandleProcessStream( ITADatasourceReal ...@@ -672,7 +678,7 @@ void CVAAmbisonicsFreeFieldAudioRenderer::HandleProcessStream( ITADatasourceReal
while( spit != ctxAudio.m_lSoundPaths.end() ) while( spit != ctxAudio.m_lSoundPaths.end() )
{ {
CVAAFFSoundPath* pPath( *spit ); CVAAFFSoundPath* pPath( *spit );
CVAListenerState* pListenerState = ( m_pCurSceneState ? m_pCurSceneState->GetListenerState( pPath->pListener->pData->iID ) : NULL ); CVAReceiverState* pListenerState = ( m_pCurSceneState ? m_pCurSceneState->GetReceiverState( pPath->pListener->pData->iID ) : NULL );
CVASoundSourceState* pSourceState = ( m_pCurSceneState ? m_pCurSceneState->GetSoundSourceState( pPath->pSource->pData->iID ) : NULL ); CVASoundSourceState* pSourceState = ( m_pCurSceneState ? m_pCurSceneState->GetSoundSourceState( pPath->pSource->pData->iID ) : NULL );
if( pListenerState == nullptr || pSourceState == nullptr ) if( pListenerState == nullptr || pSourceState == nullptr )
...@@ -812,8 +818,8 @@ void CVAAmbisonicsFreeFieldAudioRenderer::UpdateTrajectories() ...@@ -812,8 +818,8 @@ void CVAAmbisonicsFreeFieldAudioRenderer::UpdateTrajectories()
int iListenerID = it->first; int iListenerID = it->first;
CVAAFFListener* pListener = it->second; CVAAFFListener* pListener = it->second;
CVAListenerState* pListenerCur = ( m_pCurSceneState ? m_pCurSceneState->GetListenerState( iListenerID ) : nullptr ); CVAReceiverState* pListenerCur = ( m_pCurSceneState ? m_pCurSceneState->GetReceiverState( iListenerID ) : nullptr );
CVAListenerState* pListenerNew = ( m_pNewSceneState ? m_pNewSceneState->GetListenerState( iListenerID ) : nullptr ); CVAReceiverState* pListenerNew = ( m_pNewSceneState ? m_pNewSceneState->GetReceiverState( iListenerID ) : nullptr );
const CVAMotionState* pMotionCur = ( pListenerCur ? pListenerCur->GetMotionState() : nullptr ); const CVAMotionState* pMotionCur = ( pListenerCur ? pListenerCur->GetMotionState() : nullptr );
const CVAMotionState* pMotionNew = ( pListenerNew ? pListenerNew->GetMotionState() : nullptr ); const CVAMotionState* pMotionNew = ( pListenerNew ? pListenerNew->GetMotionState() : nullptr );
...@@ -871,7 +877,7 @@ CVAAFFSoundPath* CVAAmbisonicsFreeFieldAudioRenderer::CreateSoundPath( CVAAFFSou ...@@ -871,7 +877,7 @@ CVAAFFSoundPath* CVAAmbisonicsFreeFieldAudioRenderer::CreateSoundPath( CVAAFFSou
if( pSourceNew != nullptr ) if( pSourceNew != nullptr )
pPath->oDirectivityStateNew.pData = ( IVADirectivity* ) pSourceNew->GetDirectivityData(); pPath->oDirectivityStateNew.pData = ( IVADirectivity* ) pSourceNew->GetDirectivityData();
CVAListenerState* pListenerNew = ( m_pNewSceneState ? m_pNewSceneState->GetListenerState( iListenerID ) : nullptr ); CVAReceiverState* pListenerNew = ( m_pNewSceneState ? m_pNewSceneState->GetReceiverState( iListenerID ) : nullptr );
//if (pListenerNew != nullptr) //if (pListenerNew != nullptr)
// pPath->oHRIRStateNew.pData = (IVAHRIRDataset*)pListenerNew->GetHRIRDataset(); // pPath->oHRIRStateNew.pData = (IVAHRIRDataset*)pListenerNew->GetHRIRDataset();
...@@ -890,7 +896,7 @@ void CVAAmbisonicsFreeFieldAudioRenderer::DeleteSoundPath( CVAAFFSoundPath* pPat ...@@ -890,7 +896,7 @@ void CVAAmbisonicsFreeFieldAudioRenderer::DeleteSoundPath( CVAAFFSoundPath* pPat
m_pUpdateMessage->vDelPaths.push_back( pPath ); m_pUpdateMessage->vDelPaths.push_back( pPath );
} }
CVAAmbisonicsFreeFieldAudioRenderer::CVAAFFListener* CVAAmbisonicsFreeFieldAudioRenderer::CreateListener( const int iID, const CVAListenerState* pListenerState ) CVAAmbisonicsFreeFieldAudioRenderer::CVAAFFListener* CVAAmbisonicsFreeFieldAudioRenderer::CreateListener( const int iID, const CVAReceiverState* pListenerState )
{ {
VA_VERBOSE( "AmbisonicsFreeFieldAudioRenderer", "Creating listener with ID " << iID ); VA_VERBOSE( "AmbisonicsFreeFieldAudioRenderer", "Creating listener with ID " << iID );
...@@ -1093,8 +1099,8 @@ void CVAAmbisonicsFreeFieldAudioRenderer::UpdateSoundPaths() ...@@ -1093,8 +1099,8 @@ void CVAAmbisonicsFreeFieldAudioRenderer::UpdateSoundPaths()
CVASoundSourceState* pSourceCur = ( m_pCurSceneState ? m_pCurSceneState->GetSoundSourceState( iSourceID ) : nullptr ); CVASoundSourceState* pSourceCur = ( m_pCurSceneState ? m_pCurSceneState->GetSoundSourceState( iSourceID ) : nullptr );
CVASoundSourceState* pSourceNew = ( m_pNewSceneState ? m_pNewSceneState->GetSoundSourceState( iSourceID ) : nullptr ); CVASoundSourceState* pSourceNew = ( m_pNewSceneState ? m_pNewSceneState->GetSoundSourceState( iSourceID ) : nullptr );
CVAListenerState* pListenerCur = ( m_pCurSceneState ? m_pCurSceneState->GetListenerState( iListenerID ) : nullptr ); CVAReceiverState* pListenerCur = ( m_pCurSceneState ? m_pCurSceneState->GetReceiverState( iListenerID ) : nullptr );
CVAListenerState* pListenerNew = ( m_pNewSceneState ? m_pNewSceneState->GetListenerState( iListenerID ) : nullptr ); CVAReceiverState* pListenerNew = ( m_pNewSceneState ? m_pNewSceneState->GetReceiverState( iListenerID ) : nullptr );
if( pSourceNew == nullptr ) if( pSourceNew == nullptr )
{ {
...@@ -1372,5 +1378,4 @@ int CVAAmbisonicsFreeFieldAudioRenderer::GetIndex( int m, int n ) ...@@ -1372,5 +1378,4 @@ int CVAAmbisonicsFreeFieldAudioRenderer::GetIndex( int m, int n )
return ( n*n + n + m ); return ( n*n + n + m );
} }
#endif // VACORE_WITH_RENDERER_AMBISONICS_FREE_FIELD
#endif // ( VACORE_WITH_RENDERER_AMBISONICS_FREE_FIELD == 1 )
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#ifndef IW_VACORE_AMBISONICSFREEFIELDAUDIORENDERER #ifndef IW_VACORE_AMBISONICSFREEFIELDAUDIORENDERER
#define IW_VACORE_AMBISONICSFREEFIELDAUDIORENDERER #define IW_VACORE_AMBISONICSFREEFIELDAUDIORENDERER
#if( VACORE_WITH_RENDERER_AMBISONICS_FREE_FIELD == 1 ) #ifdef VACORE_WITH_RENDERER_AMBISONICS_FREE_FIELD
// VA includes // VA includes
#include "../../../Motion/VAMotionModelBase.h" #include "../../../Motion/VAMotionModelBase.h"
...@@ -350,7 +350,7 @@ private: ...@@ -350,7 +350,7 @@ private:
const CVASceneState* pNewScene, const CVASceneState* pNewScene,
const CVASceneStateDiff* pDiff ); const CVASceneStateDiff* pDiff );
void UpdateSources(); void UpdateSources();
CVAAFFListener* CreateListener( int iID, const CVAListenerState* ); CVAAFFListener* CreateListener( int iID, const CVAReceiverState* );
void DeleteListener( int iID ); void DeleteListener( int iID );
CVAAFFSource* CreateSource( int iID, const CVASoundSourceState* ); CVAAFFSource* CreateSource( int iID, const CVASoundSourceState* );
void DeleteSource( int iID ); void DeleteSource( int iID );
...@@ -368,8 +368,11 @@ private: ...@@ -368,8 +368,11 @@ private:
friend class CVAAFFSoundPath; friend class CVAAFFSoundPath;
friend class CVAAFFListenerPoolFactory; friend class CVAAFFListenerPoolFactory;
friend class CVAAFFSourcePoolFactory; friend class CVAAFFSourcePoolFactory;
//! Not for use, avoid C4512
inline CVAAmbisonicsFreeFieldAudioRenderer operator=( const CVAAmbisonicsFreeFieldAudioRenderer & ) { VA_EXCEPT_NOT_IMPLEMENTED; };
}; };
#endif // ( VACORE_WITH_RENDERER_AMBISONICS_FREE_FIELD==1 ) #endif // VACORE_WITH_RENDERER_AMBISONICS_FREE_FIELD
#endif // IW_VACORE_AmbisonicsFREEFIELDAUDIORENDERER #endif // IW_VACORE_AmbisonicsFREEFIELDAUDIORENDERER
...@@ -125,7 +125,7 @@ public: ...@@ -125,7 +125,7 @@ public:
struct PropPath struct PropPath
{ {
CVASourceListenerMetrics oRelations; //!< Informationen ber die Relation von Quelle und Hrer (Position & Orientierung) CVASourceReceiverMetrics oRelations; //!< Informationen ber die Relation von Quelle und Hrer (Position & Orientierung)
double dPropagationTime; //!< Time that the sound waves took to be propagated to the receiver double dPropagationTime; //!< Time that the sound waves took to be propagated to the receiver
double dGeometricalSpreadingLoss; //!< Spherical / geometrical spreading loss (usually 1-by-R distance law) double dGeometricalSpreadingLoss; //!< Spherical / geometrical spreading loss (usually 1-by-R distance law)
...@@ -285,6 +285,9 @@ public: ...@@ -285,6 +285,9 @@ public:
private: private:
CVACoreImpl* m_pCore; CVACoreImpl* m_pCore;
const CVABinauralAirTrafficNoiseAudioRenderer::CVABATNSoundReceiver::Config& m_oListenerConf; const CVABinauralAirTrafficNoiseAudioRenderer::CVABATNSoundReceiver::Config& m_oListenerConf;
//! Not for use, avoid C4512
inline CVABATNSoundReceiverPoolFactory operator=( const CVABATNSoundReceiverPoolFactory & ) { VA_EXCEPT_NOT_IMPLEMENTED; };
}; };
class CVABATNSourcePoolFactory : public IVAPoolObjectFactory class CVABATNSourcePoolFactory : public IVAPoolObjectFactory
...@@ -304,6 +307,9 @@ public: ...@@ -304,6 +307,9 @@ public:
private: private:
const CVABinauralAirTrafficNoiseAudioRenderer::CVABATNSource::Config& m_oSourceConf; const CVABinauralAirTrafficNoiseAudioRenderer::CVABATNSource::Config& m_oSourceConf;
//! Not for use, avoid C4512
inline CVABATNSourcePoolFactory operator=( const CVABATNSourcePoolFactory & ) { VA_EXCEPT_NOT_IMPLEMENTED; };
}; };