1
0
Fork 0
forked from len0rd/rockbox

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:
Dave Chapman 2005-02-18 16:28:52 +00:00
parent 3038abc827
commit 7b56110e5e
4 changed files with 11 additions and 11 deletions

View file

@ -19,8 +19,8 @@
#include "plugin.h" #include "plugin.h"
#if (CONFIG_HWCODEC == MASNONE) && !defined(SIMULATOR) #if (CONFIG_HWCODEC == MASNONE)
/* software codec platforms, not for simulator */ /* software codec platforms */
#include <inttypes.h> /* Needed by a52.h */ #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 { } else {
#ifdef SIMULATOR #ifdef SIMULATOR
fprintf(stderr,"ERROR: unsupported format: %d\n",flags); printf("ERROR: unsupported format: %d\n",flags);
#endif #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); length = a52_syncinfo (buf, &flags, &sample_rate, &bit_rate);
if (!length) { if (!length) {
#ifdef SIMULATOR #ifdef SIMULATOR
fprintf (stderr, "skip\n"); printf("skip\n");
#endif #endif
for (bufptr = buf; bufptr < buf + 6; bufptr++) for (bufptr = buf; bufptr < buf + 6; bufptr++)
bufptr[0] = bufptr[1]; bufptr[0] = bufptr[1];
@ -150,7 +150,7 @@ void a52_decode_data (file_info_struct* file_info, uint8_t * start, uint8_t * en
continue; continue;
error: error:
#ifdef SIMULATOR #ifdef SIMULATOR
fprintf (stderr, "error\n"); printf ("error\n");
#endif #endif
bufptr = buf; bufptr = buf;
bufpos = buf + 7; bufpos = buf + 7;

View file

@ -19,8 +19,8 @@
#include "plugin.h" #include "plugin.h"
#if (CONFIG_HWCODEC == MASNONE) && !defined(SIMULATOR) #if (CONFIG_HWCODEC == MASNONE)
/* software codec platforms, not for simulator */ /* software codec platforms */
#include <codecs/libFLAC/include/FLAC/seekable_stream_decoder.h> #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)) { if (samples*frame->header.channels > (FLAC_MAX_SUPPORTED_BLOCKSIZE*FLAC_MAX_SUPPORTED_CHANNELS)) {
// ERROR!!! // ERROR!!!
#ifdef SIMULATOR #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 #endif
return(FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE); return(FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE);
} }

View file

@ -19,7 +19,7 @@
/* Various "helper functions" common to all the xxx2wav decoder plugins */ /* 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 */ /* software codec platforms, not for simulator */
#include "plugin.h" #include "plugin.h"

View file

@ -19,8 +19,8 @@
#include "plugin.h" #include "plugin.h"
#if (CONFIG_HWCODEC == MASNONE) && !defined(SIMULATOR) #if (CONFIG_HWCODEC == MASNONE)
/* software codec platforms, not for simulator */ /* software codec platforms */
#include <codecs/libmad/mad.h> #include <codecs/libmad/mad.h>