diff options
author | Thom Johansen <thomj@rockbox.org> | 2007-11-16 15:35:37 +0000 |
---|---|---|
committer | Thom Johansen <thomj@rockbox.org> | 2007-11-16 15:35:37 +0000 |
commit | 65458ee71ca741fbed1bff7e358760bb480b85e9 (patch) | |
tree | be9262a5c2560e5e0710d41e6c94d0c3a4e86b77 /apps/codecs/libspeex/config-speex.h | |
parent | 88c4748a4b93b6dcf0a8288c030bf93ae571ce5e (diff) | |
download | rockbox-65458ee71ca741fbed1bff7e358760bb480b85e9.tar.gz rockbox-65458ee71ca741fbed1bff7e358760bb480b85e9.zip |
Speex encoder specially tailored to create voice UI snippets. Small fixups to libspeex to allow it to be built.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15640 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libspeex/config-speex.h')
-rw-r--r-- | apps/codecs/libspeex/config-speex.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/codecs/libspeex/config-speex.h b/apps/codecs/libspeex/config-speex.h index 1378fc2a69..ad1393fc60 100644 --- a/apps/codecs/libspeex/config-speex.h +++ b/apps/codecs/libspeex/config-speex.h @@ -1,8 +1,16 @@ +#ifndef ROCKBOX_VOICE_ENCODER #include "../codec.h" #include "autoconf.h" +#else +#define ICODE_ATTR +#define IDATA_ATTR +#define IBSS_ATTR +#define ICONST_ATTR +#endif /* config.h. Generated from config.h.in by configure. */ /* config.h.in. Generated from configure.ac by autoheader. */ +#ifndef ROCKBOX_VOICE_ENCODER /* Make use of ARM4E assembly optimizations */ #if defined(CPU_ARM) #define ARM4_ASM @@ -15,6 +23,7 @@ /* Make use of Blackfin assembly optimizations */ /* #undef BFIN_ASM */ +#endif /* ROCKBOX_VOICE_ENCODER */ /* Disable wideband codec */ /* #undef DISABLE_WIDEBAND */ @@ -28,8 +37,13 @@ /* Debug fixed-point implementation */ /* #undef FIXED_DEBUG */ +#ifndef ROCKBOX_VOICE_ENCODER /* Compile target codec as fixed point */ #define FIXED_POINT +#else +/* Compile voice clip encoder as floating point */ +#define FLOATING_POINT +#endif /* Define to 1 if you have the <dlfcn.h> header file. */ /* #undef HAVE_DLFCN_H */ |