diff options
| author | Thom Johansen <thomj@rockbox.org> | 2007-10-19 18:10:28 +0000 |
|---|---|---|
| committer | Thom Johansen <thomj@rockbox.org> | 2007-10-19 18:10:28 +0000 |
| commit | 6dc3a743addde6146b736ec5e1c71159c2150f95 (patch) | |
| tree | 4b8d3b58f0c73455259656b26d4294f8776f1685 /apps/codecs/libspeex/testdenoise.c | |
| parent | 31a2f33eb8c5ddf703b7f9cec393ef7133d0f4c5 (diff) | |
| download | rockbox-6dc3a743addde6146b736ec5e1c71159c2150f95.zip rockbox-6dc3a743addde6146b736ec5e1c71159c2150f95.tar.gz rockbox-6dc3a743addde6146b736ec5e1c71159c2150f95.tar.bz2 rockbox-6dc3a743addde6146b736ec5e1c71159c2150f95.tar.xz | |
Remove some Speex distribution test code we won't use.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15208 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libspeex/testdenoise.c')
| -rw-r--r-- | apps/codecs/libspeex/testdenoise.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/apps/codecs/libspeex/testdenoise.c b/apps/codecs/libspeex/testdenoise.c deleted file mode 100644 index 42644cb..0000000 --- a/apps/codecs/libspeex/testdenoise.c +++ /dev/null @@ -1,44 +0,0 @@ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include <speex/speex_preprocess.h> -#include <stdio.h> - -#define NN 160 - -int main() -{ - short in[NN]; - int i; - SpeexPreprocessState *st; - int count=0; - float f; - - st = speex_preprocess_state_init(NN, 8000); - i=1; - speex_preprocess_ctl(st, SPEEX_PREPROCESS_SET_DENOISE, &i); - i=0; - 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=.0; - speex_preprocess_ctl(st, SPEEX_PREPROCESS_SET_DEREVERB_DECAY, &f); - f=.0; - speex_preprocess_ctl(st, SPEEX_PREPROCESS_SET_DEREVERB_LEVEL, &f); - while (1) - { - int vad; - fread(in, sizeof(short), NN, stdin); - if (feof(stdin)) - break; - vad = speex_preprocess_run(st, in); - /*fprintf (stderr, "%d\n", vad);*/ - fwrite(in, sizeof(short), NN, stdout); - count++; - } - speex_preprocess_state_destroy(st); - return 0; -} |