openMSX
|
Writes 16-bit WAV files. More...
#include <WavWriter.hh>
Public Member Functions | |
Wav16Writer (const Filename &filename, unsigned channels, unsigned frequency) | |
void | write (const int16_t *buffer, unsigned stereo, unsigned samples) |
void | write (const float *buffer, unsigned stereo, unsigned samples, float ampLeft, float ampRight) |
void | writeSilence (unsigned stereo, unsigned samples) |
![]() | |
bool | isEmpty () const |
Returns false if there has been data written to the wav image. More... | |
void | flush () |
Flush data to file and update header. More... | |
Additional Inherited Members | |
![]() | |
WavWriter (const Filename &filename, unsigned channels, unsigned bits, unsigned frequency) | |
~WavWriter () | |
![]() | |
File | file |
unsigned | bytes |
Writes 16-bit WAV files.
Definition at line 56 of file WavWriter.hh.
|
inline |
Definition at line 59 of file WavWriter.hh.
void openmsx::Wav16Writer::write | ( | const float * | buffer, |
unsigned | stereo, | ||
unsigned | samples, | ||
float | ampLeft, | ||
float | ampRight | ||
) |
Definition at line 110 of file WavWriter.cc.
References openmsx::WavWriter::bytes, openmsx::WavWriter::file, utf8::unchecked::size(), openmsx::File::write(), and xrange().
|
inline |
Definition at line 62 of file WavWriter.hh.
|
inline |
Definition at line 68 of file WavWriter.hh.