diff options
-rw-r--r-- | cmp3.c | 10 | ||||
-rw-r--r-- | psdl.c | 2 |
2 files changed, 6 insertions, 6 deletions
@@ -136,9 +136,9 @@ cmp3_decode (void) { if(stream.error!=MAD_ERROR_LOSTSYNC || stream.this_frame!=GuardPtr) { -// fprintf(stderr,"recoverable frame level error (%s)\n", -// MadErrorString(&stream)); -// fflush(stderr); + fprintf(stderr,"recoverable frame level error (%s)\n", + MadErrorString(&stream)); + fflush(stderr); } continue; } @@ -147,8 +147,8 @@ cmp3_decode (void) { continue; else { -// fprintf(stderr,"unrecoverable frame level error (%s).\n", -// MadErrorString(&stream)); + fprintf(stderr,"unrecoverable frame level error (%s).\n", + MadErrorString(&stream)); break; } } @@ -113,7 +113,7 @@ psdl_callback (void* userdata, Uint8 *stream, int len) { memset (stream, 0, len); } else if (codec->info.samplesPerSecond == sdl_player_freq) { - codec->read (sdl_buffer, len); + codec->read (stream, len); } else { int nsamples = len/4; |