Loading lib_rend/ivas_objectRenderer_sources.c +23 −2 Original line number Diff line number Diff line Loading @@ -53,6 +53,10 @@ static void TDREND_SRC_SPATIAL_SetDirAtten( TDREND_SRC_SPATIAL_t *SrcSpatial_p, static void TDREND_SRC_SPATIAL_SetDistAtten( TDREND_SRC_SPATIAL_t *SrcSpatial_p, const TDREND_DistAtten_t *DistAtten_p ); #ifdef OBJ_EDITING_INTERFACE static void TDREND_SRC_SPATIAL_SetGain(const TDREND_DirAtten_t *DirAtten_p, const float Gain); #endif static float TDREND_SRC_SPATIAL_GetDirGain( const TDREND_DirAtten_t *DirAtten_p, const float *Front_p, const float *RelPos_p ); static float TDREND_SRC_SPATIAL_GetDistGain( const TDREND_DistAtten_t *DistAtten_p, const float Dist ); Loading Loading @@ -150,7 +154,7 @@ ivas_error TDREND_MIX_SRC_SetGain( } else { hBinRendererTd->Sources[SrcInd]->SrcRend_p->SrcGain_p[0] = Gain; TDREND_SRC_SPATIAL_SetGain(hBinRendererTd->Sources[SrcInd], Gain ); } return IVAS_ERR_OK; Loading Loading @@ -561,6 +565,24 @@ static void TDREND_SRC_SPATIAL_SetDistAtten( return; } #ifdef OBJ_EDITING_INTERFACE /*-------------------------------------------------------------------* * TDREND_SRC_SPATIAL_SetGain() * * Set the object gain --------------------------------------------------------------------*/ static void TDREND_SRC_SPATIAL_SetGain( const TDREND_SRC_t *Src_p, /* i : Directional attenuation specification */ const float Gain /* i : Front-pointing vector */ ) { Src_p->SrcRend_p->SrcGain_p[0] = Gain; } #endif /*-------------------------------------------------------------------* * TDREND_SRC_SPATIAL_GetDirGain() * Loading Loading @@ -612,7 +634,6 @@ static float TDREND_SRC_SPATIAL_GetDirGain( return DirGain; } /*-------------------------------------------------------------------* * TDREND_SRC_SPATIAL_GetDistGain() * Loading Loading
lib_rend/ivas_objectRenderer_sources.c +23 −2 Original line number Diff line number Diff line Loading @@ -53,6 +53,10 @@ static void TDREND_SRC_SPATIAL_SetDirAtten( TDREND_SRC_SPATIAL_t *SrcSpatial_p, static void TDREND_SRC_SPATIAL_SetDistAtten( TDREND_SRC_SPATIAL_t *SrcSpatial_p, const TDREND_DistAtten_t *DistAtten_p ); #ifdef OBJ_EDITING_INTERFACE static void TDREND_SRC_SPATIAL_SetGain(const TDREND_DirAtten_t *DirAtten_p, const float Gain); #endif static float TDREND_SRC_SPATIAL_GetDirGain( const TDREND_DirAtten_t *DirAtten_p, const float *Front_p, const float *RelPos_p ); static float TDREND_SRC_SPATIAL_GetDistGain( const TDREND_DistAtten_t *DistAtten_p, const float Dist ); Loading Loading @@ -150,7 +154,7 @@ ivas_error TDREND_MIX_SRC_SetGain( } else { hBinRendererTd->Sources[SrcInd]->SrcRend_p->SrcGain_p[0] = Gain; TDREND_SRC_SPATIAL_SetGain(hBinRendererTd->Sources[SrcInd], Gain ); } return IVAS_ERR_OK; Loading Loading @@ -561,6 +565,24 @@ static void TDREND_SRC_SPATIAL_SetDistAtten( return; } #ifdef OBJ_EDITING_INTERFACE /*-------------------------------------------------------------------* * TDREND_SRC_SPATIAL_SetGain() * * Set the object gain --------------------------------------------------------------------*/ static void TDREND_SRC_SPATIAL_SetGain( const TDREND_SRC_t *Src_p, /* i : Directional attenuation specification */ const float Gain /* i : Front-pointing vector */ ) { Src_p->SrcRend_p->SrcGain_p[0] = Gain; } #endif /*-------------------------------------------------------------------* * TDREND_SRC_SPATIAL_GetDirGain() * Loading Loading @@ -612,7 +634,6 @@ static float TDREND_SRC_SPATIAL_GetDirGain( return DirGain; } /*-------------------------------------------------------------------* * TDREND_SRC_SPATIAL_GetDistGain() * Loading