MonoWav Class Reference

Writes a monophonic wav file. More...

#include <monowav.h>

List of all members.

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.

Detailed Description

Writes a monophonic wav file.


Constructor & Destructor Documentation

MonoWav::MonoWav ( const char *  filename,
int  buffer_size = 44100 
)

mundane constructor.

Parameters:
[in] filename Filename; ".wav" is recommended.
[in] buffer_size Writes data to disk in 1-second (44100 sample) increments. This increases automatically if necessary.
Warning:
MonoWav does not check whether it received the memory it attempted to allocate; if this occurs, it will probably result in an unchecked exception crash.

Member Function Documentation

short * MonoWav::request_fill ( int  num_samples  ) 

returns an address which can hold the request data.

Parameters:
[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.
Warning:
MonoWav does not check whether it received the memory it attempted to allocate; if this occurs, it will probably result in an unchecked exception crash.

The documentation for this class was generated from the following files:
Generated on Mon Jun 27 20:50:13 2011 for Artifastring by  doxygen 1.6.3