WAV files¶
#include "wav.h"
Functions
-
void writeBit(FILE *const output, bool const bit, bool const invert)¶
Write one bit.
- Parameters:
output – [out] Output file.
bit – [in] Bit.
invert – [in] Invert polarity.
-
void writeHeader(FILE *const output)¶
Write the WAV header.
- Parameters:
output – [out] Output file.
-
void updateHeader(FILE *const output, uint32_t const size, uint32_t const bitrate)¶
Update the WAV header.
- Parameters:
output – [out] Output file.
size – [in] File size.
bitrate – [in] Bitrate.