* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* filter is 13 samples.
*
*****************************************************************************/
-#include <stdlib.h> /* malloc(), free() */
-#include <string.h>
#include <vlc/vlc.h>
-#include "audio_output.h"
-#include "aout_internal.h"
+#include <vlc_aout.h>
+
#include "bandlimited.h"
/*****************************************************************************
/* Calculate worst case for the length of the filter wing */
d_factor = (double)p_filter->output.i_rate
- / p_filter->input.i_rate;
+ / p_filter->input.i_rate / AOUT_MAX_INPUT_RATE;
i_filter_wing = ((SMALL_FILTER_NMULT + 1)/2.0)
* __MAX(1.0, 1.0/d_factor) + 10;
p_filter->p_sys->i_buf_size = aout_FormatNbChannels( &p_filter->input ) *
/* Copy all our samples in p_in */
if( p_filter->p_sys->i_old_wing )
{
- p_aout->p_vlc->pf_memcpy( p_in, p_filter->p_sys->p_buf,
+ p_aout->p_libvlc->pf_memcpy( p_in, p_filter->p_sys->p_buf,
p_filter->p_sys->i_old_wing * 2 *
p_filter->input.i_bytes_per_frame );
}
- p_aout->p_vlc->pf_memcpy( p_in + p_filter->p_sys->i_old_wing * 2 *
+ p_aout->p_libvlc->pf_memcpy( p_in + p_filter->p_sys->i_old_wing * 2 *
i_nb_channels, p_in_buf->p_buffer,
p_in_buf->i_nb_samples *
p_filter->input.i_bytes_per_frame );
if( p_filter->p_sys->d_old_factor == 1 )
{
/* Just copy the samples */
- memcpy( p_out, p_in,
+ memcpy( p_out, p_in,
p_filter->input.i_bytes_per_frame );
p_in += i_nb_channels;
p_out += i_nb_channels;