Commit 62eb56af authored by Dominik Weckbecker's avatar Dominik Weckbecker 💬
Browse files

implement SPAR_STEREO_NO_DIRAC to fix #180

parent 53721434
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -155,6 +155,7 @@
#define FIX_I178_HQ_BUFFER_OVERRUN                      /* issue 178: Buffer overrun in HQ core decoder -- spectral filling buffer did not account for extended transition frame in IVAS */
#define PRINT_SBA_ORDER                                 /* Issue 179: print-out also the SBA order of IVAS SBA format to stdout */

#define SPAR_STEREO_NO_DIRAC                            /* Issue 180: skip DirAC processing channels for stereo output */

/* ################## End DEVELOPMENT switches ######################### */
/* clang-format on */
+6 −1
Original line number Diff line number Diff line
@@ -790,7 +790,12 @@ ivas_error ivas_init_decoder(
                    return error;
                }

                if ( hDecoderConfig->output_config != AUDIO_CONFIG_FOA )
                if ( hDecoderConfig->output_config != AUDIO_CONFIG_FOA
#ifdef SPAR_STEREO_NO_DIRAC
                     && st_ivas->hDecoderConfig->output_config != AUDIO_CONFIG_STEREO 
                     && st_ivas->hDecoderConfig->output_config != AUDIO_CONFIG_MONO
#endif
                    )
                {
                    if ( ( error = ivas_dirac_dec_open( st_ivas ) ) != IVAS_ERR_OK )
                    {
+6 −0
Original line number Diff line number Diff line
@@ -515,6 +515,12 @@ void ivas_renderer_select(
            {
                *internal_config = output_config;
            }
#ifdef SPAR_STEREO_NO_DIRAC
            else if ( output_config == AUDIO_CONFIG_MONO || output_config == AUDIO_CONFIG_STEREO )
            {
                *internal_config = AUDIO_CONFIG_FOA;
            }
#endif
            else
            {
                *internal_config = AUDIO_CONFIG_HOA3;
+6 −1
Original line number Diff line number Diff line
@@ -1146,7 +1146,12 @@ void ivas_spar_dec_upmixer(
            }
        }

        if ( st_ivas->hDecoderConfig->output_config != AUDIO_CONFIG_FOA )
        if ( st_ivas->hDecoderConfig->output_config != AUDIO_CONFIG_FOA 
#ifdef SPAR_STEREO_NO_DIRAC
            && st_ivas->hDecoderConfig->output_config != AUDIO_CONFIG_STEREO 
            && st_ivas->hDecoderConfig->output_config != AUDIO_CONFIG_MONO
#endif
            )
        {
            ivas_dirac_dec( st_ivas, output, nchan_internal, cldfb_in_ts_re, cldfb_in_ts_im, i_sf );
        }