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
This commit is contained in:
parent
3038abc827
commit
7b56110e5e
4 changed files with 11 additions and 11 deletions
|
@ -19,8 +19,8 @@
|
|||
|
||||
#include "plugin.h"
|
||||
|
||||
#if (CONFIG_HWCODEC == MASNONE) && !defined(SIMULATOR)
|
||||
/* software codec platforms, not for simulator */
|
||||
#if (CONFIG_HWCODEC == MASNONE)
|
||||
/* software codec platforms */
|
||||
|
||||
#include <inttypes.h> /* Needed by a52.h */
|
||||
|
||||
|
@ -67,7 +67,7 @@ void ao_play(file_info_struct* file_info,sample_t* samples,int flags) {
|
|||
}
|
||||
} else {
|
||||
#ifdef SIMULATOR
|
||||
fprintf(stderr,"ERROR: unsupported format: %d\n",flags);
|
||||
printf("ERROR: unsupported format: %d\n",flags);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -109,7 +109,7 @@ void a52_decode_data (file_info_struct* file_info, uint8_t * start, uint8_t * en
|
|||
length = a52_syncinfo (buf, &flags, &sample_rate, &bit_rate);
|
||||
if (!length) {
|
||||
#ifdef SIMULATOR
|
||||
fprintf (stderr, "skip\n");
|
||||
printf("skip\n");
|
||||
#endif
|
||||
for (bufptr = buf; bufptr < buf + 6; bufptr++)
|
||||
bufptr[0] = bufptr[1];
|
||||
|
@ -150,7 +150,7 @@ void a52_decode_data (file_info_struct* file_info, uint8_t * start, uint8_t * en
|
|||
continue;
|
||||
error:
|
||||
#ifdef SIMULATOR
|
||||
fprintf (stderr, "error\n");
|
||||
printf ("error\n");
|
||||
#endif
|
||||
bufptr = buf;
|
||||
bufpos = buf + 7;
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
|
||||
#include "plugin.h"
|
||||
|
||||
#if (CONFIG_HWCODEC == MASNONE) && !defined(SIMULATOR)
|
||||
/* software codec platforms, not for simulator */
|
||||
#if (CONFIG_HWCODEC == MASNONE)
|
||||
/* software codec platforms */
|
||||
|
||||
#include <codecs/libFLAC/include/FLAC/seekable_stream_decoder.h>
|
||||
|
||||
|
@ -65,7 +65,7 @@ FLAC__StreamDecoderWriteStatus flac_write_handler(const FLAC__SeekableStreamDeco
|
|||
if (samples*frame->header.channels > (FLAC_MAX_SUPPORTED_BLOCKSIZE*FLAC_MAX_SUPPORTED_CHANNELS)) {
|
||||
// ERROR!!!
|
||||
#ifdef SIMULATOR
|
||||
fprintf(stderr,"ERROR: samples*frame->header.channels=%d\n",samples*frame->header.channels);
|
||||
printf("ERROR: samples*frame->header.channels=%d\n",samples*frame->header.channels);
|
||||
#endif
|
||||
return(FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE);
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
/* Various "helper functions" common to all the xxx2wav decoder plugins */
|
||||
|
||||
#if (CONFIG_HWCODEC == MASNONE) && !defined(SIMULATOR)
|
||||
#if (CONFIG_HWCODEC == MASNONE)
|
||||
/* software codec platforms, not for simulator */
|
||||
|
||||
#include "plugin.h"
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
|
||||
#include "plugin.h"
|
||||
|
||||
#if (CONFIG_HWCODEC == MASNONE) && !defined(SIMULATOR)
|
||||
/* software codec platforms, not for simulator */
|
||||
#if (CONFIG_HWCODEC == MASNONE)
|
||||
/* software codec platforms */
|
||||
|
||||
#include <codecs/libmad/mad.h>
|
||||
|
||||
|
|
Loading…
Reference in a new issue