MAN.9FRONT.ORG RTFM


     VOCDEC(1)                                               VOCDEC(1)

     NAME
          vocdec, vocenc - decode and encode VOC files

     SYNOPSIS
          games/vocdec
          games/vocenc fmt

     DESCRIPTION
          Vocdec and vocenc process and create Creative Voice format-
          ted audio files.

          Vocdec reads a VOC file on stdin and outputs a raw audio
          stream in the default format understood by /dev/audio, that
          is signed 16 bit little endian, two channels, 44.1kHz.

          Vocenc reads raw audio on stdin and outputs a VOC formatted
          file on stdout. The fmt argument specifies both the input
          and output raw audio format using the same string format as
          pcmconv(1).

     EXAMPLES
          Create a VOC file from microphone input:

               </dev/audio audio/pcmconv -o u8c1r44100 | \
                 games/vocenc u8c1r44100 >out.voc

     SOURCE
          /sys/src/games/vocdec.c
          /sys/src/games/vocenc.c

     SEE ALSO
          audio(1), audio(3), play(1)

     HISTORY
          Vocdec first appeared in 9front (February, 2023).  Vocenc
          was added later (August, 2023).