#include <vlc_plugin.h>
#include <vlc_aout.h>
#include <vlc_codec.h>
+#include <vlc_cpu.h>
/* On Win32, we link statically */
#ifdef WIN32
p_dec->fmt_out.audio.i_original_channels =
p_dec->fmt_out.audio.i_physical_channels =
AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT;
- if (vlc_CPU () & CPU_CAPABILITY_FPU)
+ if (HAVE_FPU)
{
p_dec->fmt_out.i_codec = VLC_CODEC_FL32;
p_dec->fmt_out.audio.i_bitspersample = 32;
if (p_out == NULL)
goto drop;
- p_out->start_date = date_Get (&p_sys->end_date );
- p_out->end_date = date_Increment (&p_sys->end_date, samples);
+ p_out->i_pts = date_Get (&p_sys->end_date );
+ p_out->i_length = date_Increment (&p_sys->end_date, samples)
+ - p_out->i_pts;
if (!p_sys->fixed)
fluid_synth_write_float (p_sys->synth, samples,
p_out->p_buffer, 0, 2,