openMSX
|
Base class for writing WAV files. More...
#include <WavWriter.hh>
Public Member Functions | |
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... | |
Protected Member Functions | |
WavWriter (const Filename &filename, unsigned channels, unsigned bits, unsigned frequency) | |
~WavWriter () | |
Protected Attributes | |
File | file |
unsigned | bytes |
Base class for writing WAV files.
Definition at line 15 of file WavWriter.hh.
|
protected |
Definition at line 13 of file WavWriter.cc.
References file, openmsx::DiskImageUtils::format(), and openmsx::File::write().
|
protected |
Definition at line 52 of file WavWriter.cc.
References bytes, file, flush(), and openmsx::File::write().
void openmsx::WavWriter::flush | ( | ) |
Flush data to file and update header.
Try to make (possibly) incomplete file already usable for external programs.
Definition at line 67 of file WavWriter.cc.
References bytes, file, openmsx::File::flush(), openmsx::File::getSize(), openmsx::File::seek(), and openmsx::File::write().
Referenced by ~WavWriter().
|
inline |
Returns false if there has been data written to the wav image.
Definition at line 20 of file WavWriter.hh.
References bytes.
|
protected |
Definition at line 34 of file WavWriter.hh.
Referenced by flush(), isEmpty(), openmsx::Wav16Writer::write(), and ~WavWriter().
|
protected |
Definition at line 33 of file WavWriter.hh.
Referenced by flush(), WavWriter(), openmsx::Wav16Writer::write(), and ~WavWriter().