FFMPEG based AudioResampler.
More...
#include <AudioResamplerFfmpeg.h>
List of all members.
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:
-
ctx | The 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:
-
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: