diff options
| author | Dan Everton <dan@iocaine.org> | 2007-05-22 09:50:31 +0000 |
|---|---|---|
| committer | Dan Everton <dan@iocaine.org> | 2007-05-22 09:50:31 +0000 |
| commit | df6f2f9a3c88a7a4a8ad0382ee4ee7c9a3ee3256 (patch) | |
| tree | d9862e5d04f4014def5911bb4ff8206c85636fb7 /apps/codecs/libspeex/misc.c | |
| parent | 8970055ec107a2387eedbb373889d0f540745121 (diff) | |
| download | rockbox-df6f2f9a3c88a7a4a8ad0382ee4ee7c9a3ee3256.zip rockbox-df6f2f9a3c88a7a4a8ad0382ee4ee7c9a3ee3256.tar.gz rockbox-df6f2f9a3c88a7a4a8ad0382ee4ee7c9a3ee3256.tar.bz2 rockbox-df6f2f9a3c88a7a4a8ad0382ee4ee7c9a3ee3256.tar.xz | |
Upgrade to libspeex 1.2beta2. Very minor performance increase (0.6% on coldfire).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13461 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libspeex/misc.c')
| -rw-r--r-- | apps/codecs/libspeex/misc.c | 39 |
1 files changed, 14 insertions, 25 deletions
diff --git a/apps/codecs/libspeex/misc.c b/apps/codecs/libspeex/misc.c index a0a6e3d..ae68697 100644 --- a/apps/codecs/libspeex/misc.c +++ b/apps/codecs/libspeex/misc.c @@ -63,30 +63,6 @@ long long spx_mips=0; #endif -spx_uint32_t be_int(spx_uint32_t i) -{ - spx_uint32_t ret=i; -#ifndef WORDS_BIGENDIAN - ret = i>>24; - ret += (i>>8)&0x0000ff00; - ret += (i<<8)&0x00ff0000; - ret += (i<<24); -#endif - return ret; -} - -spx_uint32_t le_int(spx_uint32_t i) -{ - spx_uint32_t ret=i; -#ifdef WORDS_BIGENDIAN - ret = i>>24; - ret += (i>>8)&0x0000ff00; - ret += (i<<8)&0x00ff0000; - ret += (i<<24); -#endif - return ret; -} - #ifndef OVERRIDE_SPEEX_ALLOC void *speex_alloc (int size) { @@ -132,7 +108,7 @@ void *speex_move (void *dest, void *src, int n) #ifndef OVERRIDE_SPEEX_ERROR void speex_error(const char *str) { - fprintf (stderr, "Fatal error: %s\n", str); + fprintf (stderr, "Fatal (internal) error: %s\n", str); exit(1); } #endif @@ -140,14 +116,27 @@ void speex_error(const char *str) #ifndef OVERRIDE_SPEEX_WARNING void speex_warning(const char *str) { +#ifndef DISABLE_WARNINGS fprintf (stderr, "warning: %s\n", str); +#endif } #endif #ifndef OVERRIDE_SPEEX_WARNING_INT void speex_warning_int(const char *str, int val) { +#ifndef DISABLE_WARNINGS fprintf (stderr, "warning: %s %d\n", str, val); +#endif +} +#endif + +#ifndef OVERRIDE_SPEEX_NOTIFY +void speex_notify(const char *str) +{ +#ifndef DISABLE_NOTIFICATIONS + fprintf (stderr, "notification: %s\n", str); +#endif } #endif |