wav2raw
Functions
-
int main(int argc, char *argv[])
wav2raw [ option ] [ infile ]
-q int
input audio format
0WAV1MP32FLAC3OGG
-c int
output channel
-1all channels0average of all channelsNN-th channel
+type char
output data type
sshort (-32768 ~ 32767)ffloat (-1.0 ~ 1.0)
infile str
audio file
stdout
waveform
The below example converts WAV file to raw short-type waveform by selecting the first channel.
wav2raw -c 1 input.wav > output.raw
- Parameters:
argc – [in] Number of arguments.
argv – [in] Argument vector.
- Returns:
0 on success, 1 on failure.