wav2raw

Functions

int main(int argc, char *argv[])

wav2raw [ option ] [ infile ]

  • -q int

    • input audio format

      • 0 WAV

      • 1 MP3

      • 2 FLAC

      • 3 OGG

  • -c int

    • output channel

      • -1 all channels

      • 0 average of all channels

      • N N-th channel

  • +type char

    • output data type

      • s short (-32768 ~ 32767)

      • f float (-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.

See also

raw2wav x2x