Module va_toolbox.wav_audio
This module provides functionality to generate and write audio data in the WAV file format. It supports various integer and floating-point types by converting them to a suitable WAV format.
The WAV format is a simple, uncompressed audio format used for storing
waveform data. This module allows for writing WAV files from raw audio data
arrays, supporting a range of data types including ubyte
, short
, int
,
float
, and double
.
Functions
Name | Description |
---|---|
toWAVFile(audioData, sampleRate, numChannels)
|
Converts audio data of supported types to WAV file format as a ubyte[] buffer.
|
writeWAVFile(filePath, audioData, sampleRate, numChannels)
|
Writes an audio data array to a WAV file on disk. |
Enums
Name | Description |
---|---|
WAVChunkIDs
|
Enums for WAV file format constants. |