diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-02-25 00:46:41 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-02-25 00:46:41 +0000 |
commit | cb78646baf67e4656252cbd8b7017514271b0d07 (patch) | |
tree | 1c793e2196fa650dd0c813e9125a28c7e49b9b29 /apps/plugins/a52towav.c | |
parent | 6e372abb0ee1974dc4fe3003a1182c0d8dc662af (diff) | |
download | rockbox-cb78646baf67e4656252cbd8b7017514271b0d07.tar.gz rockbox-cb78646baf67e4656252cbd8b7017514271b0d07.zip |
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
Diffstat (limited to 'apps/plugins/a52towav.c')
-rw-r--r-- | apps/plugins/a52towav.c | 12 |
1 files changed, 3 insertions, 9 deletions
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) { | |||
66 | int16_samples[2*i+1] = LE_S16(convert (samples[i+256])); | 66 | int16_samples[2*i+1] = LE_S16(convert (samples[i+256])); |
67 | } | 67 | } |
68 | } else { | 68 | } else { |
69 | #ifdef SIMULATOR | 69 | DEBUGF("ERROR: unsupported format: %d\n",flags); |
70 | printf("ERROR: unsupported format: %d\n",flags); | ||
71 | #endif | ||
72 | } | 70 | } |
73 | 71 | ||
74 | /* FIX: Buffer the disk write to write larger amounts at one */ | 72 | /* 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 | |||
108 | 106 | ||
109 | length = a52_syncinfo (buf, &flags, &sample_rate, &bit_rate); | 107 | length = a52_syncinfo (buf, &flags, &sample_rate, &bit_rate); |
110 | if (!length) { | 108 | if (!length) { |
111 | #ifdef SIMULATOR | 109 | DEBUGF("skip\n"); |
112 | printf("skip\n"); | ||
113 | #endif | ||
114 | for (bufptr = buf; bufptr < buf + 6; bufptr++) | 110 | for (bufptr = buf; bufptr < buf + 6; bufptr++) |
115 | bufptr[0] = bufptr[1]; | 111 | bufptr[0] = bufptr[1]; |
116 | continue; | 112 | continue; |
@@ -149,9 +145,7 @@ void a52_decode_data (file_info_struct* file_info, uint8_t * start, uint8_t * en | |||
149 | bufpos = buf + 7; | 145 | bufpos = buf + 7; |
150 | continue; | 146 | continue; |
151 | error: | 147 | error: |
152 | #ifdef SIMULATOR | 148 | DEBUGF("error\n"); |
153 | printf ("error\n"); | ||
154 | #endif | ||
155 | bufptr = buf; | 149 | bufptr = buf; |
156 | bufpos = buf + 7; | 150 | bufpos = buf + 7; |
157 | } | 151 | } |