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

Writes 16-bit WAV files. More...

#include <WavWriter.hh>

Inheritance diagram for openmsx::Wav16Writer:
Inheritance graph
Collaboration diagram for openmsx::Wav16Writer:
Collaboration graph

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)
- Public Member Functions inherited from openmsx::WavWriter
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

- 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

Detailed Description

Writes 16-bit WAV files.

Definition at line 56 of file WavWriter.hh.

Constructor & Destructor Documentation

◆ Wav16Writer()

openmsx::Wav16Writer::Wav16Writer ( const Filename filename,
unsigned  channels,
unsigned  frequency 

Definition at line 59 of file WavWriter.hh.

Member Function Documentation

◆ write() [1/2]

void openmsx::Wav16Writer::write ( const float *  buffer,
unsigned  stereo,
unsigned  samples,
float  ampLeft,
float  ampRight 

◆ write() [2/2]

void openmsx::Wav16Writer::write ( const int16_t *  buffer,
unsigned  stereo,
unsigned  samples 

Definition at line 62 of file WavWriter.hh.

◆ writeSilence()

void openmsx::Wav16Writer::writeSilence ( unsigned  stereo,
unsigned  samples 

Definition at line 68 of file WavWriter.hh.

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