Commit a68bf249 authored by TYAGIRIS's avatar TYAGIRIS
Browse files

issue 99 : Fix for incorrect internal_config when output format is HOA2

parent 59b0608b
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -149,6 +149,7 @@
#define FIX_ADAP_STEFI_SHIFT                            /* Issue 89: fix bug in parameter shift of adaptive stereo filling */
#define SPAR_SCALING_HARMONIZATION                      /* Issue 80: Changes to harmonize scaling in spar */

#define SBA_INTERN_CONFIG_FIX_HOA2                      /* Issue 99 : Fix for incorrect internal_config when output format is HOA2 or FOA*/

/* ################## End DEVELOPMENT switches ######################### */
/* clang-format on */
+11 −0
Original line number Diff line number Diff line
@@ -511,7 +511,18 @@ void ivas_renderer_select(
        if ( st_ivas->ivas_format == SBA_FORMAT && st_ivas->sba_mode == SBA_MODE_SPAR &&
             ( output_config != AUDIO_CONFIG_5_1 && output_config != AUDIO_CONFIG_5_1_2 && output_config != AUDIO_CONFIG_5_1_4 && output_config != AUDIO_CONFIG_7_1 && output_config != AUDIO_CONFIG_7_1_4 && output_config != AUDIO_CONFIG_LS_CUSTOM ) )
        {
#ifdef SBA_INTERN_CONFIG_FIX_HOA2
            if ( output_config == AUDIO_CONFIG_HOA2 || output_config == AUDIO_CONFIG_FOA )
            {
                *internal_config = output_config;
            }
            else
            {
                *internal_config = AUDIO_CONFIG_HOA3;
            }
#else
            *internal_config = AUDIO_CONFIG_HOA3;
#endif
            st_ivas->renderer_type = RENDERER_SBA_LINEAR_DEC;
        }
        else if ( ( st_ivas->ivas_format == MASA_FORMAT && output_config == AUDIO_CONFIG_MONO && st_ivas->nchan_transport == 1 ) ||