[xiph-cvs] r6501 - trunk/speex/libspeex

jm at xiph.org jm at xiph.org
Sat Apr 10 00:56:08 PDT 2004



Author: jm
Date: 2004-04-10 03:56:08 -0400 (Sat, 10 Apr 2004)
New Revision: 6501

Modified:
   trunk/speex/libspeex/preprocess.c
   trunk/speex/libspeex/testdenoise.c
Log:
At least the dereverb now has a chance of working...

<p>Modified: trunk/speex/libspeex/preprocess.c
===================================================================
--- trunk/speex/libspeex/preprocess.c	2004-04-08 04:35:26 UTC (rev 6500)
+++ trunk/speex/libspeex/preprocess.c	2004-04-10 07:56:08 UTC (rev 6501)
@@ -1016,17 +1016,17 @@
       break;
 
    case SPEEX_PREPROCESS_SET_DEREVERB_LEVEL:
-      st->reverb_level = (*(int*)ptr);
+      st->reverb_level = (*(float*)ptr);
       break;
    case SPEEX_PREPROCESS_GET_DEREVERB_LEVEL:
-      (*(int*)ptr) = st->reverb_level;
+      (*(float*)ptr) = st->reverb_level;
       break;
    
    case SPEEX_PREPROCESS_SET_DEREVERB_DECAY:
-      st->reverb_decay = (*(int*)ptr);
+      st->reverb_decay = (*(float*)ptr);
       break;
    case SPEEX_PREPROCESS_GET_DEREVERB_DECAY:
-      (*(int*)ptr) = st->reverb_decay;
+      (*(float*)ptr) = st->reverb_decay;
       break;
 
       default:

Modified: trunk/speex/libspeex/testdenoise.c
===================================================================
--- trunk/speex/libspeex/testdenoise.c	2004-04-08 04:35:26 UTC (rev 6500)
+++ trunk/speex/libspeex/testdenoise.c	2004-04-10 07:56:08 UTC (rev 6501)
@@ -18,6 +18,12 @@
    speex_preprocess_ctl(st, SPEEX_PREPROCESS_SET_AGC, &i);
    f=8000;
    speex_preprocess_ctl(st, SPEEX_PREPROCESS_SET_AGC_LEVEL, &f);
+   i=0;
+   speex_preprocess_ctl(st, SPEEX_PREPROCESS_SET_DEREVERB, &i);
+   f=.4;
+   speex_preprocess_ctl(st, SPEEX_PREPROCESS_SET_DEREVERB_DECAY, &f);
+   f=.3;
+   speex_preprocess_ctl(st, SPEEX_PREPROCESS_SET_DEREVERB_LEVEL, &f);
    while (1)
    {
       int vad;

--- >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 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list