Home
last modified time | relevance | path

Searched refs:SOX_SAMPLE_MAX (Results 1 – 15 of 15) sorted by relevance

/OK3568_Linux_fs/buildroot/dl/sox/git/src/
H A Ddcshift.c52 dcs->limiterthreshhold = SOX_SAMPLE_MAX * (1.0 - (fabs(dcs->dcshift) - dcs->limitergain)); in sox_dcshift_getopts()
102 …sample = (sample - limiterthreshhold) * limitergain / (SOX_SAMPLE_MAX - limiterthreshhold) + limi… in sox_dcshift_flow()
110 …sample = (sample + limiterthreshhold) * limitergain / (SOX_SAMPLE_MAX - limiterthreshhold) - limi… in sox_dcshift_flow()
118 sample = dcshift * SOX_SAMPLE_MAX + sample; in sox_dcshift_flow()
126 double d = dcshift * (SOX_SAMPLE_MAX + 1.) + *ibuf++; in sox_dcshift_flow()
H A Dvol.c85 …vol->limiterthreshhold = SOX_SAMPLE_MAX * (1.0 - vol->limitergain) / (fabs(vol->gain) - vol->limit… in getopts()
134 sample = (SOX_SAMPLE_MAX - vol->limitergain * (SOX_SAMPLE_MAX - sample)); in flow()
139 sample = -(SOX_SAMPLE_MAX - vol->limitergain * (SOX_SAMPLE_MAX + sample)); in flow()
H A Dsox_sample_test.c60 assert(sample > 0 && sample < SOX_SAMPLE_MAX); \
78 sample = SOX_SAMPLE_MAX; \
119 assert(sample > 0 && sample < SOX_SAMPLE_MAX); \
137 sample = SOX_SAMPLE_MAX; \
181 assert(sample == SOX_SAMPLE_MAX && clips == 0); in main()
187 assert(sample == SOX_SAMPLE_MAX && --clips == 0); in main()
H A Dsox.h690 #define SOX_SAMPLE_MAX (sox_sample_t)SOX_INT_MAX(32) macro
759 sox_macro_temp_sample > SOX_SAMPLE_MAX - (1 << (31-bits)) ? \
874 sox_macro_temp_double = (d) * (SOX_SAMPLE_MAX + 1.0), \
879 sox_macro_temp_double >= SOX_SAMPLE_MAX + 0.5 ? \
880 sox_macro_temp_double > SOX_SAMPLE_MAX + 1.0 ? \
881 ++(clips), SOX_SAMPLE_MAX : \
882 SOX_SAMPLE_MAX : \
956 #define SOX_SAMPLE_TO_FLOAT_32BIT(d,clips) ((d)*(1.0 / (SOX_SAMPLE_MAX + 1.0)))
964 #define SOX_SAMPLE_TO_FLOAT_64BIT(d,clips) ((d)*(1.0 / (SOX_SAMPLE_MAX + 1.0)))
975 if (samp > SOX_SAMPLE_MAX) \
[all …]
H A Dcvsd-fmt.c52 p->step_add = (1 - p->step_mult) * (.1 * SOX_SAMPLE_MAX); in start()
66 p->sample = min(p->step_mult * p->sample + p->step, SOX_SAMPLE_MAX); in decode()
H A Dstat.c47 stat->scale = SOX_SAMPLE_MAX; in sox_stat_getopts()
262 fprintf(stderr, "%.3f\n", SOX_SAMPLE_MAX/(amp*scale)); in sox_stat_stop()
289 fprintf(stderr, "Volume adjustment: %12.3f\n", SOX_SAMPLE_MAX/(amp*scale)); in sox_stat_stop()
H A Dcontrast.c39 *obuf++ = sin(d + p->contrast * sin(d * 4)) * SOX_SAMPLE_MAX; in flow()
H A Ddither.c409 *effp->in_signal.mult *= (SOX_SAMPLE_MAX - (1 << (31 - p->prec)) * in start()
410 (2 * mult + 1)) / (SOX_SAMPLE_MAX - (1 << (31 - p->prec))); in start()
H A Dgain.c94 p->limiter = (1 - 1 / p->fixed_gain) * (1. / SOX_SAMPLE_MAX); in start()
148 double max = SOX_SAMPLE_MAX, max_peak = 0, max_rms = 0; in start_drain()
H A Dcvsd.c348 *buf++ = (oval * ((float)SOX_SAMPLE_MAX)); in lsx_cvsdread()
382 ((float)SOX_SAMPLE_MAX); in lsx_cvsdwrite()
H A Dsynth.c630 case synth_create: synth_out *= SOX_SAMPLE_MAX; break; in flow()
631 case synth_mix : synth_out = (synth_out * SOX_SAMPLE_MAX + synth_input) * .5; break; in flow()
H A Dvorbis.c359 / ((float) SOX_SAMPLE_MAX); in write_samples()
H A Dsilence.c282 double scaled_value = (double)masked_value / SOX_SAMPLE_MAX; in aboveThreshold()
H A Deffects_i_dsp.c595 dest[i] = src[i] > 0? SOX_SAMPLE_MAX : SOX_SAMPLE_MIN; in rint_clip()
H A Dsox.c621 *effp->in_signal.mult *= 1 - (1 << (31 - prec)) * (1. / SOX_SAMPLE_MAX); in ostart()
1220 double const MAX = SOX_SAMPLE_MAX, MIN = SOX_SAMPLE_MIN; in vu()