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. | |
uint32_t | getBytes () const |
Returns the number of bytes (not samples) written so far. | |
void | flush () |
Flush data to file and update header. | |
Protected Member Functions | |
WavWriter (const Filename &filename, unsigned channels, unsigned bits, unsigned frequency) | |
~WavWriter () | |
Protected Attributes | |
File | file |
uint32_t | bytes = 0 |
Base class for writing WAV files.
Definition at line 17 of file WavWriter.hh.
|
protected |
Definition at line 18 of file WavWriter.cc.
References ranges::copy(), file, openmsx::DiskImageUtils::format(), and openmsx::File::write().
|
protected |
Definition at line 56 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 71 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 the number of bytes (not samples) written so far.
Definition at line 26 of file WavWriter.hh.
References bytes.
|
inline |
Returns false if there has been data written to the wav image.
Definition at line 22 of file WavWriter.hh.
References bytes.
|
protected |
Definition at line 40 of file WavWriter.hh.
Referenced by flush(), getBytes(), isEmpty(), openmsx::Wav16Writer::write(), openmsx::Wav16Writer::write(), openmsx::Wav16Writer::write(), openmsx::Wav8Writer::write(), openmsx::Wav16Writer::writeSilence(), and ~WavWriter().
|
protected |
Definition at line 39 of file WavWriter.hh.
Referenced by flush(), WavWriter(), openmsx::Wav16Writer::write(), openmsx::Wav16Writer::write(), openmsx::Wav16Writer::write(), openmsx::Wav8Writer::write(), openmsx::Wav16Writer::writeSilence(), and ~WavWriter().