comparison src/mpg123/layer1.c @ 561:914c96de3244 trunk

[svn] Convert plugins to use InputPlayback.output instead of InputPlugin.output
author iabervon
date Sun, 28 Jan 2007 21:09:12 -0800
parents 3da1b8942b8b
children 997496d252d4
comparison
equal deleted inserted replaced
560:7b4b37819c9d 561:914c96de3244
116 fraction[0][i] = 0.0; 116 fraction[0][i] = 0.0;
117 } 117 }
118 } 118 }
119 119
120 int 120 int
121 mpgdec_do_layer1(struct frame *fr) 121 mpgdec_do_layer1(InputPlayback *playback, struct frame *fr)
122 { 122 {
123 int i, stereo = fr->stereo; 123 int i, stereo = fr->stereo;
124 unsigned int balloc[2 * SBLIMIT]; 124 unsigned int balloc[2 * SBLIMIT];
125 unsigned int scale_index[2][SBLIMIT]; 125 unsigned int scale_index[2][SBLIMIT];
126 mpgdec_real fraction[2][SBLIMIT]; 126 mpgdec_real fraction[2][SBLIMIT];
150 } 150 }
151 #ifdef PSYCHO 151 #ifdef PSYCHO
152 psycho_process(mpgdec_pcm_sample, mpgdec_pcm_point, mpgdec_cfg.channels == 2 ? fr->stereo : 1); 152 psycho_process(mpgdec_pcm_sample, mpgdec_pcm_point, mpgdec_cfg.channels == 2 ? fr->stereo : 1);
153 #endif 153 #endif
154 if (mpgdec_info->output_audio && mpgdec_info->jump_to_time == -1) { 154 if (mpgdec_info->output_audio && mpgdec_info->jump_to_time == -1) {
155 produce_audio(mpgdec_ip.output->written_time(), 155 produce_audio(playback->output->written_time(),
156 mpgdec_cfg.resolution == 156 mpgdec_cfg.resolution ==
157 16 ? FMT_S16_NE : FMT_U8, 157 16 ? FMT_S16_NE : FMT_U8,
158 mpgdec_cfg.channels == 158 mpgdec_cfg.channels ==
159 2 ? fr->stereo : 1, mpgdec_pcm_point, 159 2 ? fr->stereo : 1, mpgdec_pcm_point,
160 mpgdec_pcm_sample, &mpgdec_info->going); 160 mpgdec_pcm_sample, &mpgdec_info->going);