- aout_DateInit (&p_sys->end_date, p_dec->fmt_out.audio.i_rate);
- aout_DateSet (&p_sys->end_date, 0);
+ p_dec->fmt_out.i_cat = AUDIO_ES;
+ p_dec->fmt_out.audio.i_rate = 44100;
+ p_dec->fmt_out.audio.i_channels = 2;
+ p_dec->fmt_out.audio.i_original_channels =
+ p_dec->fmt_out.audio.i_physical_channels =
+ AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT;
+ if (HAVE_FPU)
+ {
+ p_dec->fmt_out.i_codec = VLC_CODEC_FL32;
+ p_dec->fmt_out.audio.i_bitspersample = 32;
+ p_sys->fixed = false;
+ }
+ else
+ {
+ p_dec->fmt_out.i_codec = VLC_CODEC_S16N;
+ p_dec->fmt_out.audio.i_bitspersample = 16;
+ p_sys->fixed = true;
+ }
+ date_Init (&p_sys->end_date, p_dec->fmt_out.audio.i_rate, 1);
+ date_Set (&p_sys->end_date, 0);