search for: loudness_exp

Displaying 4 results from an estimated 4 matches for "loudness_exp".

2008 Feb 21
0
st->nb_loudness_adapt removal patch
.../**< Maximum gain allowed */ float max_increase_step; /**< Maximum increase in gain from one frame to another */ float max_decrease_step; /**< Maximum decrease in gain from one frame to another */ @@ -516,7 +515,6 @@ /*st->loudness = pow(AMP_SCALE*st->agc_level,LOUDNESS_EXP);*/ st->loudness = 1e-15; st->agc_gain = 1; - st->nb_loudness_adapt = 0; st->max_gain = 30; st->max_increase_step = exp(0.11513f * 12.*st->frame_size / st->sampling_rate); st->max_decrease_step = exp(-0.11513f * 40.*st->frame_size / st->sampling_r...
2004 Aug 06
1
Speex preprocess & loudness
Hi, Does someone know if I could use SpeexPreprocessState::loudness or SpeexPreprocessState::loudness2 to create a VU meter. And if so, how? <p>Thanks, Tom Moers --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org' containing only the word
2008 Mar 18
1
Patch to make SPEEX_PREPROCESS_GET_AGC_GAIN use dB, and _SET_AGC_LEVEL use a int32
...e SPEEX_PREPROCESS_GET_AGC_LEVEL: - (*(float*)ptr) = st->agc_level; + (*(spx_int32_t*)ptr) = st->agc_level; break; #endif /* #ifndef DISABLE_FLOAT_API */ case SPEEX_PREPROCESS_SET_AGC_INCREMENT: @@ -1176,7 +1176,7 @@ (*(spx_int32_t*)ptr) = pow(st->loudness, 1.0/LOUDNESS_EXP); break; case SPEEX_PREPROCESS_GET_AGC_GAIN: - (*(spx_int32_t*)ptr) = (spx_int32_t) (st->agc_gain * 100.f); + (*(spx_int32_t*)ptr) = floor(.5+8.6858*log(st->agc_gain)); break; #endif case SPEEX_PREPROCESS_GET_PSD_SIZE:
2008 Feb 02
0
Patch to make analysis data available.
...ex: libspeex/preprocess.c =================================================================== --- libspeex/preprocess.c (revision 14443) +++ libspeex/preprocess.c (working copy) @@ -1175,8 +1175,31 @@ case SPEEX_PREPROCESS_GET_AGC_LOUDNESS: (*(spx_int32_t*)ptr) = pow(st->loudness, 1.0/LOUDNESS_EXP); break; + case SPEEX_PREPROCESS_GET_AGC_GAIN: + (*(spx_int32_t*)ptr) = (spx_int32_t) (st->agc_gain * 100.f); + break; #endif - + case SPEEX_PREPROCESS_GET_SPECTRUM_SIZE: + (*(spx_int32_t*)ptr) = st->ps_size; + break; + case SPEEX_PREPROCESS_GET_POWER_SPECTRU...