diff options
author | Dave Chapman <dave@dchapman.com> | 2005-02-18 16:28:52 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2005-02-18 16:28:52 +0000 |
commit | 7b56110e5e74055d45753456034b333788823af4 (patch) | |
tree | 2f3a9626f67152b9b40a9fd9a11f157ed8025065 /apps/plugins/a52towav.c | |
parent | 3038abc8270dde743c6b4bf068549854acd16ef6 (diff) | |
download | rockbox-7b56110e5e74055d45753456034b333788823af4.tar.gz rockbox-7b56110e5e74055d45753456034b333788823af4.zip |
Build the codec plugins in the simulator - only tested for X11
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6011 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/a52towav.c')
-rw-r--r-- | apps/plugins/a52towav.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugins/a52towav.c b/apps/plugins/a52towav.c index f62106a8c3..1bf4fe391f 100644 --- a/apps/plugins/a52towav.c +++ b/apps/plugins/a52towav.c | |||
@@ -19,8 +19,8 @@ | |||
19 | 19 | ||
20 | #include "plugin.h" | 20 | #include "plugin.h" |
21 | 21 | ||
22 | #if (CONFIG_HWCODEC == MASNONE) && !defined(SIMULATOR) | 22 | #if (CONFIG_HWCODEC == MASNONE) |
23 | /* software codec platforms, not for simulator */ | 23 | /* software codec platforms */ |
24 | 24 | ||
25 | #include <inttypes.h> /* Needed by a52.h */ | 25 | #include <inttypes.h> /* Needed by a52.h */ |
26 | 26 | ||
@@ -67,7 +67,7 @@ void ao_play(file_info_struct* file_info,sample_t* samples,int flags) { | |||
67 | } | 67 | } |
68 | } else { | 68 | } else { |
69 | #ifdef SIMULATOR | 69 | #ifdef SIMULATOR |
70 | fprintf(stderr,"ERROR: unsupported format: %d\n",flags); | 70 | printf("ERROR: unsupported format: %d\n",flags); |
71 | #endif | 71 | #endif |
72 | } | 72 | } |
73 | 73 | ||
@@ -109,7 +109,7 @@ void a52_decode_data (file_info_struct* file_info, uint8_t * start, uint8_t * en | |||
109 | length = a52_syncinfo (buf, &flags, &sample_rate, &bit_rate); | 109 | length = a52_syncinfo (buf, &flags, &sample_rate, &bit_rate); |
110 | if (!length) { | 110 | if (!length) { |
111 | #ifdef SIMULATOR | 111 | #ifdef SIMULATOR |
112 | fprintf (stderr, "skip\n"); | 112 | printf("skip\n"); |
113 | #endif | 113 | #endif |
114 | for (bufptr = buf; bufptr < buf + 6; bufptr++) | 114 | for (bufptr = buf; bufptr < buf + 6; bufptr++) |
115 | bufptr[0] = bufptr[1]; | 115 | bufptr[0] = bufptr[1]; |
@@ -150,7 +150,7 @@ void a52_decode_data (file_info_struct* file_info, uint8_t * start, uint8_t * en | |||
150 | continue; | 150 | continue; |
151 | error: | 151 | error: |
152 | #ifdef SIMULATOR | 152 | #ifdef SIMULATOR |
153 | fprintf (stderr, "error\n"); | 153 | printf ("error\n"); |
154 | #endif | 154 | #endif |
155 | bufptr = buf; | 155 | bufptr = buf; |
156 | bufpos = buf + 7; | 156 | bufpos = buf + 7; |