openMSX
Public Member Functions | List of all members
openmsx::Wav8Writer Class Reference

Writes 8-bit WAV files. More...

#include <WavWriter.hh>

Inheritance diagram for openmsx::Wav8Writer:
Inheritance graph
[legend]
Collaboration diagram for openmsx::Wav8Writer:
Collaboration graph
[legend]

Public Member Functions

 Wav8Writer (const Filename &filename, unsigned channels, unsigned frequency)
 
void write (const uint8_t *buffer, unsigned stereo, unsigned samples)
 
- Public Member Functions inherited from openmsx::WavWriter
bool isEmpty () const
 Returns false if there has been data written to the wav image. More...
 
unsigned getBytes () const
 Returns the number of bytes (not samples) written so far. More...
 
void flush ()
 Flush data to file and update header. More...
 

Additional Inherited Members

- Protected Member Functions inherited from openmsx::WavWriter
 WavWriter (const Filename &filename, unsigned channels, unsigned bits, unsigned frequency)
 
 ~WavWriter ()
 
- Protected Attributes inherited from openmsx::WavWriter
File file
 
unsigned bytes = 0
 

Detailed Description

Writes 8-bit WAV files.

Definition at line 43 of file WavWriter.hh.

Constructor & Destructor Documentation

◆ Wav8Writer()

openmsx::Wav8Writer::Wav8Writer ( const Filename filename,
unsigned  channels,
unsigned  frequency 
)
inline

Definition at line 46 of file WavWriter.hh.

Member Function Documentation

◆ write()

void openmsx::Wav8Writer::write ( const uint8_t *  buffer,
unsigned  stereo,
unsigned  samples 
)
inline

Definition at line 49 of file WavWriter.hh.

References write().

Referenced by write().


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