summaryrefslogtreecommitdiff
path: root/apps/codecs/libspeex/rockbox.h
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2008-11-20 11:27:31 +0000
committerBjörn Stenberg <bjorn@haxx.se>2008-11-20 11:27:31 +0000
commitc6b3d38a156dd624760a8eb1bb374affd43b4f2a (patch)
tree493eba929e2396d86cf4f077709aa09fe172cd35 /apps/codecs/libspeex/rockbox.h
parentf66c30346783a400a029bedcd60ab67c81c34a07 (diff)
downloadrockbox-c6b3d38a156dd624760a8eb1bb374affd43b4f2a.tar.gz
rockbox-c6b3d38a156dd624760a8eb1bb374affd43b4f2a.zip
New makefile solution: A single invocation of 'make' to build the entire tree. Fully controlled dependencies give faster and more correct recompiles.
Many #include lines adjusted to conform to the new standards. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19146 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libspeex/rockbox.h')
-rw-r--r--apps/codecs/libspeex/rockbox.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/apps/codecs/libspeex/rockbox.h b/apps/codecs/libspeex/rockbox.h
index 073bad5d98..459c8b532f 100644
--- a/apps/codecs/libspeex/rockbox.h
+++ b/apps/codecs/libspeex/rockbox.h
@@ -24,8 +24,7 @@
24/* We don't want all this stuff if we're building encoder */ 24/* We don't want all this stuff if we're building encoder */
25#ifndef ROCKBOX_VOICE_ENCODER 25#ifndef ROCKBOX_VOICE_ENCODER
26 26
27#include "../codec.h" 27#include "codeclib.h"
28#include "../lib/codeclib.h"
29#include "debug.h" 28#include "debug.h"
30 29
31#if !defined(ROCKBOX_VOICE_CODEC) 30#if !defined(ROCKBOX_VOICE_CODEC)
@@ -35,6 +34,7 @@
35#define DEBUGF ci->debugf 34#define DEBUGF ci->debugf
36#endif 35#endif
37 36
37
38#ifdef ROCKBOX_HAS_LOGF 38#ifdef ROCKBOX_HAS_LOGF
39#undef LOGF 39#undef LOGF
40#define LOGF ci->logf 40#define LOGF ci->logf
@@ -75,6 +75,9 @@ static inline void speex_free_scratch (void *ptr)
75#define OVERRIDE_SPEEX_FATAL 1 75#define OVERRIDE_SPEEX_FATAL 1
76static inline void _speex_fatal(const char *str, const char *file, int line) 76static inline void _speex_fatal(const char *str, const char *file, int line)
77{ 77{
78 (void)str;
79 (void)file;
80 (void)line;
78 DEBUGF("Fatal error: %s\n", str); 81 DEBUGF("Fatal error: %s\n", str);
79 //exit(1); 82 //exit(1);
80} 83}
@@ -82,24 +85,30 @@ static inline void _speex_fatal(const char *str, const char *file, int line)
82#define OVERRIDE_SPEEX_WARNING 1 85#define OVERRIDE_SPEEX_WARNING 1
83static inline void speex_warning(const char *str) 86static inline void speex_warning(const char *str)
84{ 87{
88 (void)str;
85 DEBUGF("warning: %s\n", str); 89 DEBUGF("warning: %s\n", str);
86} 90}
87 91
88#define OVERRIDE_SPEEX_WARNING_INT 1 92#define OVERRIDE_SPEEX_WARNING_INT 1
89static inline void speex_warning_int(const char *str, int val) 93static inline void speex_warning_int(const char *str, int val)
90{ 94{
95 (void)str;
96 (void)val;
91 DEBUGF("warning: %s %d\n", str, val); 97 DEBUGF("warning: %s %d\n", str, val);
92} 98}
93 99
94#define OVERRIDE_SPEEX_NOTIFY 1 100#define OVERRIDE_SPEEX_NOTIFY 1
95static inline void speex_notify(const char *str) 101static inline void speex_notify(const char *str)
96{ 102{
103 (void)str;
97 DEBUGF("notice: %s\n", str); 104 DEBUGF("notice: %s\n", str);
98} 105}
99 106
100#define OVERRIDE_SPEEX_PUTC 1 107#define OVERRIDE_SPEEX_PUTC 1
101static inline void _speex_putc(int ch, void *file) 108static inline void _speex_putc(int ch, void *file)
102{ 109{
110 (void)ch;
111 (void)file;
103 //FILE *f = (FILE *)file; 112 //FILE *f = (FILE *)file;
104 //printf("%c", ch); 113 //printf("%c", ch);
105} 114}