Commit cb82daf9 authored by Shikha Shetgeri's avatar Shikha Shetgeri
Browse files

LS channel allocation and alternative for copying hrtfs

parent 7ea4b503
Loading
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -5187,8 +5187,10 @@ void ivas_binaural_hrtf_close(
ivas_error ivas_allocate_binaural_hrtf(
    HRTFS_FASTCONV *HrtfFastConv,                                   /* i  : fastconv HRTF handle                       */
    AUDIO_CONFIG output_config,                                     /* i : ouput audio config                          */
    BINAURAL_INPUT_AUDIO_CONFIG output_config_bin                  /* i : binaural input audio config                  */
  , RENDERER_TYPE renderer_type
    BINAURAL_INPUT_AUDIO_CONFIG output_config_bin,                  /* i : binaural input audio config                  */
    RENDERER_TYPE renderer_type,
    int8_t is_loudspeaker_setup,
    int16_t allocate_init_flag
);
#endif

+570 −174

File changed.

Preview size limit exceeded, changes collapsed.

+2 −0
Original line number Diff line number Diff line
@@ -1021,6 +1021,8 @@ typedef struct ivas_hrtfs_fastconv_struct
    float ***rightHRIRImag_FOA;
    float FASTCONV_FOA_latency_s;
    BINAURAL_INPUT_AUDIO_CONFIG input_cfg_var;
    int16_t allocate_init_flag;
    int16_t nChannels;
#else
#ifdef UPDATE_FASTCONV_SBA_FILTER
    float leftHRIRReal_HOA3[BINAURAL_CONVBANDS][HOA3_CHANNELS][BINAURAL_NTAPS_SBA];
+2 −1
Original line number Diff line number Diff line
@@ -1057,7 +1057,8 @@ static ivas_error create_fastconv_HRTF_from_rawdata(
    char *hrtf_data_rptr;
#ifdef FIX_1720_HRTF_FASTCONV
    ( *hHRTF )->input_cfg_var = input_cfg;
    ivas_allocate_binaural_hrtf( *hHRTF, 0, input_cfg, rend_type );
    ( *hHRTF )->allocate_init_flag = 0;
    ivas_allocate_binaural_hrtf( *hHRTF, 0, input_cfg, rend_type, 0, ( *hHRTF )->allocate_init_flag );
#endif

    // if ( hHRTF == NULL )