Gnash
0.8.11dev
|
VERY crude audio resampler. More...
#include <AudioResampler.h>
Static Public Member Functions | |
static void | convert_raw_data (std::int16_t **adjusted_data, int *adjusted_size, void *data, int sample_count, int sample_size, int sample_rate, bool stereo, int m_sample_rate, bool m_stereo) |
VERY crude sample-rate and stereo conversion. More... | |
VERY crude audio resampler.
|
static |
VERY crude sample-rate and stereo conversion.
Converts input data to output format.
adjusted_data | Where the converted data is placed (output). WARNING: even though the type of the output data is int16, the adjusted_size output parameter is in bytes. |
adjusted_size | The size of the converted data (output) in bytes. |
data | Data that needs to be converted (input). |
sample_count | The datas current sample count (input). |
sample_size | The datas current sample size (input) in bytes. |
sample_rate | The datas current sample rate (input). |
stereo | Whether the current data is in stereo (input). |
m_sample_rate | The samplerate we which to convert to (output). |
m_stereo | Do we want the output data to be in stereo (output)? |
References gnash::key::i, and gnash::key::j.
Referenced by gnash::media::AudioDecoderSpeex::decode(), and gnash::media::AudioDecoderSimple::decode().