From cb78646baf67e4656252cbd8b7017514271b0d07 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Fri, 25 Feb 2005 00:46:41 +0000 Subject: Codec test plugins: use DEBUGF() instead of (not cleanly avaliable) printf(). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6052 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/a52towav.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'apps/plugins/a52towav.c') diff --git a/apps/plugins/a52towav.c b/apps/plugins/a52towav.c index 1bf4fe391f..4e6150b2f2 100644 --- a/apps/plugins/a52towav.c +++ b/apps/plugins/a52towav.c @@ -66,9 +66,7 @@ void ao_play(file_info_struct* file_info,sample_t* samples,int flags) { int16_samples[2*i+1] = LE_S16(convert (samples[i+256])); } } else { -#ifdef SIMULATOR - printf("ERROR: unsupported format: %d\n",flags); -#endif + DEBUGF("ERROR: unsupported format: %d\n",flags); } /* FIX: Buffer the disk write to write larger amounts at one */ @@ -108,9 +106,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 - printf("skip\n"); -#endif + DEBUGF("skip\n"); for (bufptr = buf; bufptr < buf + 6; bufptr++) bufptr[0] = bufptr[1]; continue; @@ -149,9 +145,7 @@ void a52_decode_data (file_info_struct* file_info, uint8_t * start, uint8_t * en bufpos = buf + 7; continue; error: -#ifdef SIMULATOR - printf ("error\n"); -#endif + DEBUGF("error\n"); bufptr = buf; bufpos = buf + 7; } -- cgit v1.2.3