Writes a monophonic wav file. More...
#include <monowav.h>
Public Member Functions | |
| MonoWav (const char *filename, int buffer_size=44100) | |
| mundane constructor. | |
| ~MonoWav () | |
| writes data to disk before quitting | |
| short * | request_fill (int num_samples) |
| returns an address which can hold the request data. | |
Writes a monophonic wav file.
| MonoWav::MonoWav | ( | const char * | filename, | |
| int | buffer_size = 44100 | |||
| ) |
mundane constructor.
| [in] | filename | Filename; ".wav" is recommended. |
| [in] | buffer_size | Writes data to disk in 1-second (44100 sample) increments. This increases automatically if necessary. |
| short * MonoWav::request_fill | ( | int | num_samples | ) |
returns an address which can hold the request data.
| [in] | num_samples | Number of samples you wish to write. If this value requires a larger buffer size, more memory will be allocated for you. |
1.6.3