summaryrefslogtreecommitdiff
path: root/apps/codecs/libspeex/rockbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libspeex/rockbox.c')
-rw-r--r--apps/codecs/libspeex/rockbox.c59
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
22extern 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
38void *speex_alloc (int size) 36extern struct codec_api* ci;
39{
40 return codec_calloc(size, 1);
41}
42
43void *speex_alloc_scratch (int size)
44{
45 return codec_calloc(size,1);
46}
47
48void *speex_realloc (void *ptr, int size)
49{
50 return codec_realloc(ptr, size);
51}
52
53void speex_free (void *ptr)
54{
55 codec_free(ptr);
56}
57
58void speex_free_scratch (void *ptr)
59{
60 codec_free(ptr);
61}
62
63void *speex_move (void *dest, void *src, int n)
64{
65 return memmove(dest,src,n);
66}
67
68void speex_error(const char *str)
69{
70 DEBUGF("Fatal error: %s\n", str);
71 //exit(1);
72}
73
74void speex_warning(const char *str)
75{
76 DEBUGF("warning: %s\n", str);
77}
78
79void speex_warning_int(const char *str, int val)
80{
81 DEBUGF("warning: %s %d\n", str, val);
82}
83
84void speex_notify(const char *str)
85{
86 DEBUGF("notice: %s\n", str);
87}
88
89void _speex_putc(int ch, void *file)
90{
91 //FILE *f = (FILE *)file;
92 //printf("%c", ch);
93}
94 37
95float floor(float x) { 38float floor(float x) {
96 return ((float)(((int)x))); 39 return ((float)(((int)x)));