Commit d8f65e73 authored by Marek Szczerba's avatar Marek Szczerba
Browse files

Merge branch '1129-external-renderer-binaural-room-reverb-output-level-high' into 'main'

[Non-BE] Resolve "External renderer BINAURAL_ROOM_REVERB format output level too high compared to internal rendering output"

See merge request !1678
parents f314bb5e 513c28e2
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -170,6 +170,7 @@
#define FIX_1123_PARAMBIN_16BIT_ROM                     /* FhG,Nok: issue 1123: update ParamBin ROM tables and scripts to generate 16 bit tables instead of float */
#define FIX_RETURN                                      /* VA: fix location of function returns */
#endif
#define FIX_1129_EXT_REND_OUTPUT_HIGH                   /* Philips: issue 1129: External renderer BINAURAL_ROOM_REVERB format output level too high compared to internal rendering output */
#define FIX_1152_UNINIT_VAL_IN_ITD_VAD_COMPUTATION      /* FhG: fix uninitialized value being used in ITD VAD mid signal computation that does not affect synthesis, but crashes BASOPs */

/* #################### End BE switches ################################## */
+13 −0
Original line number Diff line number Diff line
@@ -2529,6 +2529,9 @@ static ivas_error updateSbaPanGains(
                    break;
                }
                case IVAS_AUDIO_CONFIG_BINAURAL:
#ifdef FIX_1129_EXT_REND_OUTPUT_HIGH
                case IVAS_AUDIO_CONFIG_BINAURAL_ROOM_REVERB:
#endif
                    if ( hRendCfg->split_rend_config.rendererSelection == ISAR_SPLIT_REND_RENDERER_SELECTION_FASTCONV )
                    {
                        if ( ( error = ivas_rend_openCldfbRend( &inputSba->cldfbRendWrapper, inConfig, outConfig, &rendCtx.pSplitRendWrapper->multiBinPoseData, *rendCtx.pOutSampleRate ) ) != IVAS_ERR_OK )
@@ -2545,7 +2548,9 @@ static ivas_error updateSbaPanGains(
                    }
                    break;
                case IVAS_AUDIO_CONFIG_BINAURAL_ROOM_IR:
#ifndef FIX_1129_EXT_REND_OUTPUT_HIGH
                case IVAS_AUDIO_CONFIG_BINAURAL_ROOM_REVERB:
#endif
                    if ( ( error = initSbaPanGainsForMcOut( inputSba, IVAS_AUDIO_CONFIG_7_1_4, NULL ) ) != IVAS_ERR_OK )
                    {
                        return error;
@@ -6754,11 +6759,19 @@ static ivas_error renderInputSba(
                case IVAS_AUDIO_CONFIG_BINAURAL_SPLIT_PCM:
                    error = renderSbaToSplitBinaural( sbaInput, outConfig, outAudio );
                    break;
#ifdef FIX_1129_EXT_REND_OUTPUT_HIGH
                case IVAS_AUDIO_CONFIG_BINAURAL:
                case IVAS_AUDIO_CONFIG_BINAURAL_ROOM_REVERB:
                    error = renderSbaToBinaural( sbaInput, outConfig, outAudio );
                    break;
                case IVAS_AUDIO_CONFIG_BINAURAL_ROOM_IR:
#else
                case IVAS_AUDIO_CONFIG_BINAURAL:
                    error = renderSbaToBinaural( sbaInput, outConfig, outAudio );
                    break;
                case IVAS_AUDIO_CONFIG_BINAURAL_ROOM_IR:
                case IVAS_AUDIO_CONFIG_BINAURAL_ROOM_REVERB:
#endif
                    error = renderSbaToBinauralRoom( sbaInput, outConfig, outAudio );
                    break;
                default: