Loading apps/renderer.c +3 −0 Original line number Diff line number Diff line Loading @@ -1189,6 +1189,9 @@ int main( { masaIds[i] = 0u; } #ifdef NONBE_1377_REND_DIRATT_CONF IVAS_REND_SetObjectIDs( hIvasRend ); #endif for ( i = 0; i < args.inConfig.numMultiChannelBuses; ++i ) { Loading lib_rend/ivas_objectRenderer.c +3 −3 Original line number Diff line number Diff line Loading @@ -661,7 +661,7 @@ ivas_error ivas_td_binaural_open_ext( LSSETUP_CUSTOM_STRUCT *customLsInput, #ifdef NONBE_1377_REND_DIRATT_CONF const int32_t outFs, /* i: output sampling rate */ const int16_t ism_number /* i: ISM number */ const int16_t object_id /* i: Object ID */ ) #else const int32_t outFs ) Loading Loading @@ -703,7 +703,7 @@ ivas_error ivas_td_binaural_open_ext( if ( NULL != hRendCfg ) { #ifdef NONBE_1377_REND_DIRATT_CONF directivity = hRendCfg->directivity + 3 * ism_number; directivity = hRendCfg->directivity + 3 * object_id; #else directivity = hRendCfg->directivity; #endif Loading lib_rend/ivas_prot_rend.h +1 −1 Original line number Diff line number Diff line Loading @@ -643,7 +643,7 @@ ivas_error ivas_td_binaural_open_ext( LSSETUP_CUSTOM_STRUCT *customLsInput, #ifdef NONBE_1377_REND_DIRATT_CONF const int32_t output_Fs, /* i: output sampling rate */ const int16_t ism_number /* i: ISM number */ const int16_t object_id /* i: Object ID */ #else const int32_t output_Fs #endif Loading lib_rend/lib_rend.c +34 −11 Original line number Diff line number Diff line Loading @@ -119,6 +119,9 @@ typedef struct float nonDiegeticPanGain; OMASA_ANA_HANDLE hOMasa; uint16_t total_num_objects; #ifdef NONBE_1377_REND_DIRATT_CONF int16_t object_id; #endif float ism_metadata_delay_ms; } input_ism; Loading Loading @@ -1330,11 +1333,7 @@ static ivas_error setRendInputActiveIsm( if ( outConfig == IVAS_AUDIO_CONFIG_BINAURAL || outConfig == IVAS_AUDIO_CONFIG_BINAURAL_SPLIT_CODED || outConfig == IVAS_AUDIO_CONFIG_BINAURAL_SPLIT_PCM ) { #ifdef NONBE_1377_REND_DIRATT_CONF ism_number = hRendCfg->number_of_objects; hRendCfg->object_id[ism_number] = id; hRendCfg->number_of_objects++; if ( ( error = ivas_td_binaural_open_ext( &inputIsm->tdRendWrapper, inConfig, hRendCfg, NULL, *rendCtx.pOutSampleRate, ism_number ) ) != IVAS_ERR_OK ) if ( ( error = ivas_td_binaural_open_ext( &inputIsm->tdRendWrapper, inConfig, hRendCfg, NULL, *rendCtx.pOutSampleRate, inputIsm->object_id ) ) != IVAS_ERR_OK ) #else if ( ( error = ivas_td_binaural_open_ext( &inputIsm->tdRendWrapper, inConfig, hRendCfg, NULL, *rendCtx.pOutSampleRate ) ) != IVAS_ERR_OK ) #endif Loading @@ -1346,7 +1345,7 @@ static ivas_error setRendInputActiveIsm( for ( i = 0; i < MAX_HEAD_ROT_POSES - 1; ++i ) { #ifdef NONBE_1377_REND_DIRATT_CONF if ( ( error = ivas_td_binaural_open_ext( &inputIsm->splitTdRendWrappers[i], inConfig, hRendCfg, NULL, *inputIsm->base.ctx.pOutSampleRate, ism_number ) ) != IVAS_ERR_OK ) if ( ( error = ivas_td_binaural_open_ext( &inputIsm->splitTdRendWrappers[i], inConfig, hRendCfg, NULL, *inputIsm->base.ctx.pOutSampleRate, inputIsm->object_id ) ) != IVAS_ERR_OK ) #else if ( ( error = ivas_td_binaural_open_ext( &inputIsm->splitTdRendWrappers[i], inConfig, hRendCfg, NULL, *inputIsm->base.ctx.pOutSampleRate ) ) != IVAS_ERR_OK ) #endif Loading @@ -1368,11 +1367,7 @@ static ivas_error setRendInputActiveIsm( else { #ifdef NONBE_1377_REND_DIRATT_CONF ism_number = hRendCfg->number_of_objects; hRendCfg->object_id[ism_number] = id; hRendCfg->number_of_objects++; if ( ( error = ivas_td_binaural_open_ext( &inputIsm->tdRendWrapper, inConfig, hRendCfg, NULL, *rendCtx.pOutSampleRate, ism_number ) ) != IVAS_ERR_OK ) if ( ( error = ivas_td_binaural_open_ext( &inputIsm->tdRendWrapper, inConfig, hRendCfg, NULL, *rendCtx.pOutSampleRate, inputIsm->object_id ) ) != IVAS_ERR_OK ) #else if ( ( error = ivas_td_binaural_open_ext( &inputIsm->tdRendWrapper, inConfig, hRendCfg, NULL, *rendCtx.pOutSampleRate ) ) != IVAS_ERR_OK ) #endif Loading Loading @@ -3626,6 +3621,34 @@ ivas_error IVAS_REND_ConfigureCustomInputLoudspeakerLayout( return IVAS_ERR_OK; } #ifdef NONBE_1377_REND_DIRATT_CONF /*-------------------------------------------------------------------* * IVAS_REND_SetObjectIDs() * * *-------------------------------------------------------------------*/ ivas_error IVAS_REND_SetObjectIDs( IVAS_REND_HANDLE hIvasRend /* i/o: Renderer handle */ ) { int16_t i; /* Validate function arguments */ if ( hIvasRend == NULL ) { return IVAS_ERR_UNEXPECTED_NULL_POINTER; } for ( i = 0; i < RENDERER_MAX_ISM_INPUTS; i++ ) { hIvasRend->inputsIsm[i].object_id = i; } return IVAS_ERR_OK; } #endif /*-------------------------------------------------------------------* * IVAS_REND_SetInputGain() Loading lib_rend/lib_rend.h +6 −0 Original line number Diff line number Diff line Loading @@ -145,6 +145,12 @@ ivas_error IVAS_REND_ConfigureCustomInputLoudspeakerLayout( const IVAS_CUSTOM_LS_DATA layout /* i : custom loudspeaker layout for input */ ); #ifdef NONBE_1377_REND_DIRATT_CONF ivas_error IVAS_REND_SetObjectIDs( IVAS_REND_HANDLE hIvasRend /* i/o: Renderer handle */ ); #endif ivas_error IVAS_REND_SetInputGain( IVAS_REND_HANDLE hIvasRend, /* i/o: Renderer handle */ const IVAS_REND_InputId inputId, /* i : ID of the input */ Loading Loading
apps/renderer.c +3 −0 Original line number Diff line number Diff line Loading @@ -1189,6 +1189,9 @@ int main( { masaIds[i] = 0u; } #ifdef NONBE_1377_REND_DIRATT_CONF IVAS_REND_SetObjectIDs( hIvasRend ); #endif for ( i = 0; i < args.inConfig.numMultiChannelBuses; ++i ) { Loading
lib_rend/ivas_objectRenderer.c +3 −3 Original line number Diff line number Diff line Loading @@ -661,7 +661,7 @@ ivas_error ivas_td_binaural_open_ext( LSSETUP_CUSTOM_STRUCT *customLsInput, #ifdef NONBE_1377_REND_DIRATT_CONF const int32_t outFs, /* i: output sampling rate */ const int16_t ism_number /* i: ISM number */ const int16_t object_id /* i: Object ID */ ) #else const int32_t outFs ) Loading Loading @@ -703,7 +703,7 @@ ivas_error ivas_td_binaural_open_ext( if ( NULL != hRendCfg ) { #ifdef NONBE_1377_REND_DIRATT_CONF directivity = hRendCfg->directivity + 3 * ism_number; directivity = hRendCfg->directivity + 3 * object_id; #else directivity = hRendCfg->directivity; #endif Loading
lib_rend/ivas_prot_rend.h +1 −1 Original line number Diff line number Diff line Loading @@ -643,7 +643,7 @@ ivas_error ivas_td_binaural_open_ext( LSSETUP_CUSTOM_STRUCT *customLsInput, #ifdef NONBE_1377_REND_DIRATT_CONF const int32_t output_Fs, /* i: output sampling rate */ const int16_t ism_number /* i: ISM number */ const int16_t object_id /* i: Object ID */ #else const int32_t output_Fs #endif Loading
lib_rend/lib_rend.c +34 −11 Original line number Diff line number Diff line Loading @@ -119,6 +119,9 @@ typedef struct float nonDiegeticPanGain; OMASA_ANA_HANDLE hOMasa; uint16_t total_num_objects; #ifdef NONBE_1377_REND_DIRATT_CONF int16_t object_id; #endif float ism_metadata_delay_ms; } input_ism; Loading Loading @@ -1330,11 +1333,7 @@ static ivas_error setRendInputActiveIsm( if ( outConfig == IVAS_AUDIO_CONFIG_BINAURAL || outConfig == IVAS_AUDIO_CONFIG_BINAURAL_SPLIT_CODED || outConfig == IVAS_AUDIO_CONFIG_BINAURAL_SPLIT_PCM ) { #ifdef NONBE_1377_REND_DIRATT_CONF ism_number = hRendCfg->number_of_objects; hRendCfg->object_id[ism_number] = id; hRendCfg->number_of_objects++; if ( ( error = ivas_td_binaural_open_ext( &inputIsm->tdRendWrapper, inConfig, hRendCfg, NULL, *rendCtx.pOutSampleRate, ism_number ) ) != IVAS_ERR_OK ) if ( ( error = ivas_td_binaural_open_ext( &inputIsm->tdRendWrapper, inConfig, hRendCfg, NULL, *rendCtx.pOutSampleRate, inputIsm->object_id ) ) != IVAS_ERR_OK ) #else if ( ( error = ivas_td_binaural_open_ext( &inputIsm->tdRendWrapper, inConfig, hRendCfg, NULL, *rendCtx.pOutSampleRate ) ) != IVAS_ERR_OK ) #endif Loading @@ -1346,7 +1345,7 @@ static ivas_error setRendInputActiveIsm( for ( i = 0; i < MAX_HEAD_ROT_POSES - 1; ++i ) { #ifdef NONBE_1377_REND_DIRATT_CONF if ( ( error = ivas_td_binaural_open_ext( &inputIsm->splitTdRendWrappers[i], inConfig, hRendCfg, NULL, *inputIsm->base.ctx.pOutSampleRate, ism_number ) ) != IVAS_ERR_OK ) if ( ( error = ivas_td_binaural_open_ext( &inputIsm->splitTdRendWrappers[i], inConfig, hRendCfg, NULL, *inputIsm->base.ctx.pOutSampleRate, inputIsm->object_id ) ) != IVAS_ERR_OK ) #else if ( ( error = ivas_td_binaural_open_ext( &inputIsm->splitTdRendWrappers[i], inConfig, hRendCfg, NULL, *inputIsm->base.ctx.pOutSampleRate ) ) != IVAS_ERR_OK ) #endif Loading @@ -1368,11 +1367,7 @@ static ivas_error setRendInputActiveIsm( else { #ifdef NONBE_1377_REND_DIRATT_CONF ism_number = hRendCfg->number_of_objects; hRendCfg->object_id[ism_number] = id; hRendCfg->number_of_objects++; if ( ( error = ivas_td_binaural_open_ext( &inputIsm->tdRendWrapper, inConfig, hRendCfg, NULL, *rendCtx.pOutSampleRate, ism_number ) ) != IVAS_ERR_OK ) if ( ( error = ivas_td_binaural_open_ext( &inputIsm->tdRendWrapper, inConfig, hRendCfg, NULL, *rendCtx.pOutSampleRate, inputIsm->object_id ) ) != IVAS_ERR_OK ) #else if ( ( error = ivas_td_binaural_open_ext( &inputIsm->tdRendWrapper, inConfig, hRendCfg, NULL, *rendCtx.pOutSampleRate ) ) != IVAS_ERR_OK ) #endif Loading Loading @@ -3626,6 +3621,34 @@ ivas_error IVAS_REND_ConfigureCustomInputLoudspeakerLayout( return IVAS_ERR_OK; } #ifdef NONBE_1377_REND_DIRATT_CONF /*-------------------------------------------------------------------* * IVAS_REND_SetObjectIDs() * * *-------------------------------------------------------------------*/ ivas_error IVAS_REND_SetObjectIDs( IVAS_REND_HANDLE hIvasRend /* i/o: Renderer handle */ ) { int16_t i; /* Validate function arguments */ if ( hIvasRend == NULL ) { return IVAS_ERR_UNEXPECTED_NULL_POINTER; } for ( i = 0; i < RENDERER_MAX_ISM_INPUTS; i++ ) { hIvasRend->inputsIsm[i].object_id = i; } return IVAS_ERR_OK; } #endif /*-------------------------------------------------------------------* * IVAS_REND_SetInputGain() Loading
lib_rend/lib_rend.h +6 −0 Original line number Diff line number Diff line Loading @@ -145,6 +145,12 @@ ivas_error IVAS_REND_ConfigureCustomInputLoudspeakerLayout( const IVAS_CUSTOM_LS_DATA layout /* i : custom loudspeaker layout for input */ ); #ifdef NONBE_1377_REND_DIRATT_CONF ivas_error IVAS_REND_SetObjectIDs( IVAS_REND_HANDLE hIvasRend /* i/o: Renderer handle */ ); #endif ivas_error IVAS_REND_SetInputGain( IVAS_REND_HANDLE hIvasRend, /* i/o: Renderer handle */ const IVAS_REND_InputId inputId, /* i : ID of the input */ Loading