Gnash
0.8.10
|
FFMPEG based AudioResampler. More...
#include <AudioResamplerFfmpeg.h>
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. |
FFMPEG based AudioResampler.
This class is used to provide an easy interface to libavcodecs audio resampler.
bool gnash::media::ffmpeg::AudioResamplerFfmpeg::init | ( | AVCodecContext * | ctx | ) |
Initializes the resampler.
ctx | The audio format container. |
int gnash::media::ffmpeg::AudioResamplerFfmpeg::resample | ( | boost::int16_t * | input, |
boost::int16_t * | output, | ||
int | samples | ||
) |
Resamples audio.
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 |