Commit e1636331 authored by Tapani Pihlajakuja's avatar Tapani Pihlajakuja
Browse files

Add check for only changing reverb when correct output format.

parent 1fdd23c4
Loading
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -4793,7 +4793,12 @@ ivas_error IVAS_REND_AddInput_fx(
    setMaxGlobalDelayNs( hIvasRend );

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