Static Public Member Functions

gnash::media::AudioResampler Class Reference

VERY crude audio resampler. More...

#include <AudioResampler.h>

List of all members.

Static Public Member Functions

static void convert_raw_data (boost::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.

Detailed Description

VERY crude audio resampler.

Member Function Documentation

void gnash::media::AudioResampler::convert_raw_data ( boost::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 
) [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.

The documentation for this class was generated from the following files: