summaryrefslogtreecommitdiff
path: root/apps/plugins/a52towav.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/a52towav.c')
-rw-r--r--apps/plugins/a52towav.c12
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 }