Displaying 2 results from an estimated 2 matches for "ampmax_att_per_sec".
2002 Apr 07
1
2 questions about compiling the source
Hi all,
Q1: The source defined this structure in the psy.h file:
typedef struct{
int eighth_octave_lines;
float preecho_thresh[4];
float postecho_thresh[4];
float preecho_minenergy;
float ampmax_att_per_sec;
int delaycache;
} vorbis_info_psy_global;
However, the file psytune.c makes this declaration:
tatic vorbis_info_psy_global _psy_set0G={
0, /* decaydBpms */
8, /* lines per eighth octave */
/* thresh sample period, preecho clamp trigger threshhold, range, minenergy */
256,...
2012 Dec 12
1
[PATCH] psy.c tweak
...reshholds_limited[]={0.0, .5, 1.0, 1.5, 2.0, 2.5, 4.5, 8.5, 9e10};
@@ -40,7 +40,7 @@
look->channels=vi->channels;
- look->ampmax=-9999.;
+ look->ampmax=NEGINF;
look->gi=gi;
return(look);
}
@@ -836,7 +836,7 @@
float secs=(float)n/vi->rate;
amp+=secs*gi->ampmax_att_per_sec;
- if(amp<-9999)amp=-9999;
+ if(amp<NEGINF)amp=NEGINF;
return(amp);
}