Gnash  0.8.10
Public Member Functions
gnash::sound::WAVWriter Class Reference

WAV writer class. More...

#include <WAVWriter.h>

List of all members.

Public Member Functions

 WAVWriter (const std::string &outfile)
 ~WAVWriter ()
void pushSamples (boost::int16_t *from, unsigned int nSamples)
 Write samples to file.

Detailed Description

WAV writer class.


Constructor & Destructor Documentation

gnash::sound::WAVWriter::WAVWriter ( const std::string &  outfile)

References _.

gnash::sound::WAVWriter::~WAVWriter ( )

Member Function Documentation

void gnash::sound::WAVWriter::pushSamples ( boost::int16_t *  from,
unsigned int  nSamples 
)

Write samples to file.

Parameters:
fromThe buffer to read samples from. Buffer must be big enough to hold nSamples samples.
nSamplesThe 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).

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