Commit c8a04d50 authored by emerit's avatar emerit
Browse files

add support hrtf binary file with partial RI for mixerconv (ex only hrir, or foa)

parent 9fb5214d
Loading
Loading
Loading
Loading
Loading
+13 −12
Original line number Diff line number Diff line
@@ -430,21 +430,11 @@ int main( int argc, char *argv[] )
                    if ( ( input_mixerconv_bin_hrir_path != NULL ) && ( input_mixerconv_bin_hrir_file_name != NULL ) )
#endif // MIXER_CONV_BINARY_FILE_311
                    {
                        int start_nbHRTF = nbHRTF;
                        for ( j = 0; j < IVAS_NB_AUDIO_CONFIG; j++ )
                        {
                            setOfHRTF[nbHRTF] = create_hrtf_crend( rend_types[i], input_cfgs[j], freq_ptr[k], &hrtf_size );
                            if ( hrtf_size == -1 )
                            {
                                fprintf( stderr, "Creation of HRTF (%d, %d, %d) failed!\n\n", rend_types[i], input_cfgs[j], freq_ptr[k] );
                                for ( l = 0; l < nbHRTF; l++ )
                                {
                                    free( setOfHRTF[l] );
                                }
                                free( setOfHRTF );
                                rom2bin_terminat();
                                return -1;
                            }
                            else
                            if ( hrtf_size > 0 )
                            {
                                if ( setOfHRTF[nbHRTF] != NULL )
                                {
@@ -455,6 +445,17 @@ int main( int argc, char *argv[] )
                                }
                            }
                        }
                        if ( start_nbHRTF == nbHRTF )
                        {
                            fprintf( stderr, "Creation of HRTF (%d, %d, %d) failed!\n\n", rend_types[i], input_cfgs[j], freq_ptr[k] );
                            for ( l = 0; l < nbHRTF; l++ )
                            {
                                free( setOfHRTF[l] );
                            }
                            free( setOfHRTF );
                            rom2bin_terminat();
                            return -1;
                        }
                    }
                    break;
                case RENDERER_BINAURAL_MIXER_CONV_ROOM: