Gnash
0.8.10
|
WAV writer class. More...
#include <WAVWriter.h>
Public Member Functions | |
WAVWriter (const std::string &outfile) | |
~WAVWriter () | |
void | pushSamples (boost::int16_t *from, unsigned int nSamples) |
Write samples to file. |
WAV writer class.
gnash::sound::WAVWriter::WAVWriter | ( | const std::string & | outfile | ) |
References _.
gnash::sound::WAVWriter::~WAVWriter | ( | ) |
void gnash::sound::WAVWriter::pushSamples | ( | boost::int16_t * | from, |
unsigned int | nSamples | ||
) |
Write samples to file.
from | The buffer to read samples from. Buffer must be big enough to hold nSamples samples. |
nSamples | The amount of samples to read. NOTE: this number currently refers to "mono" samples due to some bad design decision. It is so expected that the user fetches 44100 * 2 samples which has to be interpreted as series of left,right channel couples. TODO: use actual number of samples so that it's expected to fetch 44100 per second and let expose a function to give interpretation of what comes back (how many bytes per channel, which format). |