Commit 70f568a9 authored by Tapani Pihlajakuja's avatar Tapani Pihlajakuja
Browse files

Add check for only changing reverb when correct output format.

parent 6e400c3c
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -4093,7 +4093,11 @@ ivas_error IVAS_REND_AddInput(
    setMaxGlobalDelayNs( hIvasRend );

    /* select default reverb size after adding an input */
#ifdef FIX_FLOAT_1569_REND_RENDER_CONFIG_CHECKS
    if ( hIvasRend->outputConfig == IVAS_AUDIO_CONFIG_BINAURAL_ROOM_REVERB && hIvasRend->selectedRoomReverbSize == DEFAULT_REVERB_UNSET )
#else
    if ( hIvasRend->selectedRoomReverbSize == DEFAULT_REVERB_UNSET )
#endif
    {
#ifdef FIX_FLOAT_1569_REND_RENDER_CONFIG_CHECKS
        if ( ( error = IVAS_REND_SetReverbRoomSize( hIvasRend, getDefaultReverbSize( hIvasRend->inputsIsm,