EMIPLIB
|
This is a simple WAV file writer (8 bit, mono)
#include <mipwavwriter.h>
Public Member Functions | |
bool | open (const std::string &fileName, int sampRate) |
Opens the WAV file specified in fileName at sampling rate sampRate . | |
bool | close () |
Closes the WAV file. | |
bool | writeFrames (uint8_t *pBuffer, int numFrames) |
Writes a number of frames. |
bool MIPWAVWriter::writeFrames | ( | uint8_t * | pBuffer, |
int | numFrames | ||
) |
This function allows you to write sound data to the file. Note that currently only mono sound is supported.
pBuffer | Sound data |
numFrames | Number of frames in the buffer. Is currently equal to the number of bytes. |