diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/a52towav.c | 10 | ||||
-rw-r--r-- | apps/plugins/flac2wav.c | 6 | ||||
-rw-r--r-- | apps/plugins/lib/xxx2wav.c | 2 | ||||
-rw-r--r-- | apps/plugins/mpa2wav.c | 4 |
4 files changed, 11 insertions, 11 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; |
diff --git a/apps/plugins/flac2wav.c b/apps/plugins/flac2wav.c index b9207eeafe..c90cf0d633 100644 --- a/apps/plugins/flac2wav.c +++ b/apps/plugins/flac2wav.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 <codecs/libFLAC/include/FLAC/seekable_stream_decoder.h> | 25 | #include <codecs/libFLAC/include/FLAC/seekable_stream_decoder.h> |
26 | 26 | ||
@@ -65,7 +65,7 @@ FLAC__StreamDecoderWriteStatus flac_write_handler(const FLAC__SeekableStreamDeco | |||
65 | if (samples*frame->header.channels > (FLAC_MAX_SUPPORTED_BLOCKSIZE*FLAC_MAX_SUPPORTED_CHANNELS)) { | 65 | if (samples*frame->header.channels > (FLAC_MAX_SUPPORTED_BLOCKSIZE*FLAC_MAX_SUPPORTED_CHANNELS)) { |
66 | // ERROR!!! | 66 | // ERROR!!! |
67 | #ifdef SIMULATOR | 67 | #ifdef SIMULATOR |
68 | fprintf(stderr,"ERROR: samples*frame->header.channels=%d\n",samples*frame->header.channels); | 68 | printf("ERROR: samples*frame->header.channels=%d\n",samples*frame->header.channels); |
69 | #endif | 69 | #endif |
70 | return(FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE); | 70 | return(FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE); |
71 | } | 71 | } |
diff --git a/apps/plugins/lib/xxx2wav.c b/apps/plugins/lib/xxx2wav.c index b4be45347e..cc8c31a11e 100644 --- a/apps/plugins/lib/xxx2wav.c +++ b/apps/plugins/lib/xxx2wav.c | |||
@@ -19,7 +19,7 @@ | |||
19 | 19 | ||
20 | /* Various "helper functions" common to all the xxx2wav decoder plugins */ | 20 | /* Various "helper functions" common to all the xxx2wav decoder plugins */ |
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, not for simulator */ |
24 | 24 | ||
25 | #include "plugin.h" | 25 | #include "plugin.h" |
diff --git a/apps/plugins/mpa2wav.c b/apps/plugins/mpa2wav.c index a4fbf79605..a8d7cc01dc 100644 --- a/apps/plugins/mpa2wav.c +++ b/apps/plugins/mpa2wav.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 <codecs/libmad/mad.h> | 25 | #include <codecs/libmad/mad.h> |
26 | 26 | ||