gnash::media::AudioResampler Class Reference

#include <ffmpegNetStreamUtil.h>

List of all members.

Public Member Functions

 AudioResampler ()
 ~AudioResampler ()
bool init (AVCodecContext *ctx)
 Initializes the resampler.
int resample (boost::int16_t *input, boost::int16_t *output, int samples)
 Resamples audio.


Detailed Description

This class is used to provide an easy interface to libavcodecs audio resampler.

Constructor & Destructor Documentation

gnash::media::AudioResampler::AudioResampler (  ) 

gnash::media::AudioResampler::~AudioResampler (  ) 


Member Function Documentation

bool gnash::media::AudioResampler::init ( AVCodecContext *  ctx  ) 

Initializes the resampler.

Initialize the resampler.

Parameters:
ctx The audio format container.
Returns:
true if resampling is needed, if not false
Parameters:
ctx The audio format container.
Returns:
true if resampling is needed, false if not

int gnash::media::AudioResampler::resample ( boost::int16_t *  input,
boost::int16_t *  output,
int  samples 
)

Resamples audio.

Resample audio.

Parameters:
input A pointer to the audio data that needs resampling
output A pointer to where the resampled output should be placed
samples Number of samples in the audio
Returns:
the number of samples in the output data.
Parameters:
input A pointer to the audio data that needs resampling
output A pointer to where the resampled output should be placed
samples Number of samples in the audio
Returns:
the number of samples in the output data.


The documentation for this class was generated from the following files:
Generated on Thu Mar 6 18:25:11 2008 for Gnash by  doxygen 1.5.4