diff options
Diffstat (limited to 'apps/codecs/libspeex/rockbox.c')
-rw-r--r-- | apps/codecs/libspeex/rockbox.c | 59 |
1 files changed, 1 insertions, 58 deletions
diff --git a/apps/codecs/libspeex/rockbox.c b/apps/codecs/libspeex/rockbox.c index 89af3cba5d..2abf8ccb32 100644 --- a/apps/codecs/libspeex/rockbox.c +++ b/apps/codecs/libspeex/rockbox.c | |||
@@ -19,8 +19,6 @@ | |||
19 | #include "../codec.h" | 19 | #include "../codec.h" |
20 | #include "../lib/codeclib.h" | 20 | #include "../lib/codeclib.h" |
21 | 21 | ||
22 | extern struct codec_api* ci; | ||
23 | |||
24 | #if defined(DEBUG) || defined(SIMULATOR) | 22 | #if defined(DEBUG) || defined(SIMULATOR) |
25 | #undef DEBUGF | 23 | #undef DEBUGF |
26 | #define DEBUGF ci->debugf | 24 | #define DEBUGF ci->debugf |
@@ -35,62 +33,7 @@ extern struct codec_api* ci; | |||
35 | #define LOGF(...) | 33 | #define LOGF(...) |
36 | #endif | 34 | #endif |
37 | 35 | ||
38 | void *speex_alloc (int size) | 36 | extern struct codec_api* ci; |
39 | { | ||
40 | return codec_calloc(size, 1); | ||
41 | } | ||
42 | |||
43 | void *speex_alloc_scratch (int size) | ||
44 | { | ||
45 | return codec_calloc(size,1); | ||
46 | } | ||
47 | |||
48 | void *speex_realloc (void *ptr, int size) | ||
49 | { | ||
50 | return codec_realloc(ptr, size); | ||
51 | } | ||
52 | |||
53 | void speex_free (void *ptr) | ||
54 | { | ||
55 | codec_free(ptr); | ||
56 | } | ||
57 | |||
58 | void speex_free_scratch (void *ptr) | ||
59 | { | ||
60 | codec_free(ptr); | ||
61 | } | ||
62 | |||
63 | void *speex_move (void *dest, void *src, int n) | ||
64 | { | ||
65 | return memmove(dest,src,n); | ||
66 | } | ||
67 | |||
68 | void speex_error(const char *str) | ||
69 | { | ||
70 | DEBUGF("Fatal error: %s\n", str); | ||
71 | //exit(1); | ||
72 | } | ||
73 | |||
74 | void speex_warning(const char *str) | ||
75 | { | ||
76 | DEBUGF("warning: %s\n", str); | ||
77 | } | ||
78 | |||
79 | void speex_warning_int(const char *str, int val) | ||
80 | { | ||
81 | DEBUGF("warning: %s %d\n", str, val); | ||
82 | } | ||
83 | |||
84 | void speex_notify(const char *str) | ||
85 | { | ||
86 | DEBUGF("notice: %s\n", str); | ||
87 | } | ||
88 | |||
89 | void _speex_putc(int ch, void *file) | ||
90 | { | ||
91 | //FILE *f = (FILE *)file; | ||
92 | //printf("%c", ch); | ||
93 | } | ||
94 | 37 | ||
95 | float floor(float x) { | 38 | float floor(float x) { |
96 | return ((float)(((int)x))); | 39 | return ((float)(((int)x))); |