Mercurial > audlegacy-plugins
comparison src/alac/plugin.c @ 58:d42917f142b5 trunk
[svn] - remove debugging notices
| author | nenolod |
|---|---|
| date | Sat, 30 Sep 2006 21:11:48 -0700 |
| parents | 96901271d2e2 |
| children | 72ad216a01ac |
comparison
equal
deleted
inserted
replaced
| 57:96901271d2e2 | 58:d42917f142b5 |
|---|---|
| 44 | 44 |
| 45 static VFSFile *input_file = NULL; | 45 static VFSFile *input_file = NULL; |
| 46 static int input_opened = 0; | 46 static int input_opened = 0; |
| 47 static stream_t *input_stream; | 47 static stream_t *input_stream; |
| 48 | 48 |
| 49 static int write_wav_format = 0; | |
| 50 static int verbose = 1; | |
| 51 | |
| 52 gpointer decode_thread(void *args); | 49 gpointer decode_thread(void *args); |
| 53 static GThread *playback_thread; | 50 static GThread *playback_thread; |
| 54 | 51 |
| 55 extern void set_endian(); | 52 extern void set_endian(); |
| 56 | 53 |
| 214 decode_frame(alac, buffer, pDestBuffer, &outputBytes); | 211 decode_frame(alac, buffer, pDestBuffer, &outputBytes); |
| 215 | 212 |
| 216 /* write */ | 213 /* write */ |
| 217 bytes_read += outputBytes; | 214 bytes_read += outputBytes; |
| 218 | 215 |
| 219 if (verbose) | |
| 220 fprintf(stderr, "read %i bytes. total: %i\n", outputBytes, bytes_read); | |
| 221 | |
| 222 produce_audio(alac_ip.output->written_time(), FMT_S16_LE, demux_res->num_channels, outputBytes, pDestBuffer, &going); | 216 produce_audio(alac_ip.output->written_time(), FMT_S16_LE, demux_res->num_channels, outputBytes, pDestBuffer, &going); |
| 223 } | 217 } |
| 224 if (verbose) | |
| 225 fprintf(stderr, "done reading, read %i frames\n", i); | |
| 226 } | 218 } |
| 227 | 219 |
| 228 static void init_sound_converter(demux_res_t *demux_res) | 220 static void init_sound_converter(demux_res_t *demux_res) |
| 229 { | 221 { |
| 230 alac = create_alac(demux_res->sample_size, demux_res->num_channels); | 222 alac = create_alac(demux_res->sample_size, demux_res->num_channels); |
