EMIPLIB
|
A sound file output component. More...
#include <mipwavoutput.h>
Public Member Functions | |
bool | open (const std::string &fname, int sampRate) |
Opens a sound file. | |
bool | close () |
Closes the sound file. |
This component writes incoming sound data to a file. It uses an internal simple WAV file write to accomplish this. Incoming messages have to be unsigned 8 bit audio messages. No messages are generated by this component.
bool MIPWAVOutput::close | ( | ) |
Using this function, a previously opened sound file can be closed again.
bool MIPWAVOutput::open | ( | const std::string & | fname, |
int | sampRate | ||
) |
This function opens a sound file.
fname | The name of the file. |
sampRate | The sampling rate. |