Gnash  0.8.10
Public Member Functions
gnash::media::ffmpeg::AudioResamplerFfmpeg Class Reference

FFMPEG based AudioResampler. More...

#include <AudioResamplerFfmpeg.h>

List of all members.

Public Member Functions

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

Detailed Description

FFMPEG based AudioResampler.

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


Constructor & Destructor Documentation

gnash::media::ffmpeg::AudioResamplerFfmpeg::AudioResamplerFfmpeg ( )
gnash::media::ffmpeg::AudioResamplerFfmpeg::~AudioResamplerFfmpeg ( )

Member Function Documentation

bool gnash::media::ffmpeg::AudioResamplerFfmpeg::init ( AVCodecContext *  ctx)

Initializes the resampler.

Parameters:
ctxThe audio format container.
Returns:
true if resampling is needed, if not false
int gnash::media::ffmpeg::AudioResamplerFfmpeg::resample ( boost::int16_t *  input,
boost::int16_t *  output,
int  samples 
)

Resamples audio.

Parameters:
inputA pointer to the audio data that needs resampling
outputA pointer to where the resampled output should be placed
samplesNumber 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: