1616 *
1717 */
1818
19- static struct MYSOFA_EASY * mysofa_open_default (const char * filename , float samplerate , int * filterlength , int * err , bool applyNorm )
19+ static struct MYSOFA_EASY * mysofa_open_default (const char * filename , float samplerate , int * filterlength , int * err , bool applyNorm , float neighbor_angle_step , float neighbor_radius_step )
2020{
2121 struct MYSOFA_EASY * easy = malloc (sizeof (struct MYSOFA_EASY ));
2222 if (!easy ) {
@@ -62,8 +62,8 @@ static struct MYSOFA_EASY* mysofa_open_default(const char *filename, float sampl
6262 return NULL ;
6363 }
6464
65- easy -> neighborhood = mysofa_neighborhood_init (easy -> hrtf ,
66- easy -> lookup );
65+ easy -> neighborhood = mysofa_neighborhood_init_withstepdefine (easy -> hrtf ,
66+ easy -> lookup , neighbor_angle_step , neighbor_radius_step );
6767
6868 * filterlength = easy -> hrtf -> N ;
6969
@@ -72,12 +72,17 @@ static struct MYSOFA_EASY* mysofa_open_default(const char *filename, float sampl
7272
7373MYSOFA_EXPORT struct MYSOFA_EASY * mysofa_open (const char * filename , float samplerate , int * filterlength , int * err )
7474{
75- return mysofa_open_default (filename ,samplerate ,filterlength ,err ,true);
75+ return mysofa_open_default (filename ,samplerate ,filterlength ,err ,true, MYSOFA_DEFAULT_NEIGH_STEP_ANGLE , MYSOFA_DEFAULT_NEIGH_STEP_RADIUS );
7676}
7777
7878MYSOFA_EXPORT struct MYSOFA_EASY * mysofa_open_no_norm (const char * filename , float samplerate , int * filterlength , int * err )
7979{
80- return mysofa_open_default (filename ,samplerate ,filterlength ,err ,false);
80+ return mysofa_open_default (filename ,samplerate ,filterlength ,err ,false,MYSOFA_DEFAULT_NEIGH_STEP_ANGLE ,MYSOFA_DEFAULT_NEIGH_STEP_RADIUS );
81+ }
82+
83+ MYSOFA_EXPORT struct MYSOFA_EASY * mysofa_open_advanced (const char * filename , float samplerate , int * filterlength , int * err , bool norm , float neighbor_angle_step , float neighbor_radius_step )
84+ {
85+ return mysofa_open_default (filename ,samplerate ,filterlength ,err ,norm ,neighbor_angle_step ,neighbor_radius_step );
8186}
8287
8388MYSOFA_EXPORT struct MYSOFA_EASY * mysofa_open_cached (const char * filename , float samplerate , int * filterlength , int * err )
0 commit comments