WavWriter

Constructors

this
this(string filename, WavFileHeader header)

Opens the file with the given header params.

this
this(WavFileHeader header)

WavWriter(WavFileHeader(44100, 2, 16));

Destructor

~this
~this()

Calls close. Errors are ignored.

Postblit

A postblit is present on this object, but not explicitly documented in the source.

Members

Functions

close
bool close()
open
bool open(string filename)
write
bool write(ubyte[] data)

Writes 8-bit samples to the file. You must have constructed the object with an 8 bit header.

write
bool write(short[] data)

Writes 16-bit samples to the file. You must have constructed the object with 16 bit header.

Meta