| AUDIOPLAY(1) | General Commands Manual | AUDIOPLAY(1) | 
audioplay —
| audioplay | [ -hinqV] [-Bbuffersize] [-bbalance] [-ddevice] [-pport] [-vvolume] [-f[-cchannels]
      [-eencoding]
      [-Pprecision]
      [-ssample-rate]] [files
      ...] | 
audioplay program copies the named audio files, or
  the standard input if no files are named, to the audio device. The special
  name “-” is assumed to mean the standard input. The input files
  must contain a valid audio header, and the encoding must be understood by the
  underlying driver.
-B-b-c-f option, sets the number
      of channels to its argument.-d-e-f option, sets the
      encoding to its argument. Possible values are
      mulaw, ulaw,
      alaw, slinear,
      linear, ulinear,
      adpcm, ADPCM,
      slinear_le, linear_le,
      ulinear_le, slinear_be,
      linear_be, ulinear_be,
      mpeg_l1_stream,
      mpeg_l1_packets,
      mpeg_l1_system,
      mpeg_l2_stream,
      mpeg_l2_packets, and
      mpeg_l2_system.-f-f flag can be used in addition with the
      -c, -e,
      -P, and -s flags to change
      the number of channels, encoding, precision, and sample rate.-h-i-n-P-f option, sets the
      precision to its argument. This value must be either 4, 8, 16, 24 or
    32.-p-q-s-f option, sets the sample
      rate to its argument. This value must be a valid value for the audio
      device or an error will be returned.-V-vaudioplay -f -c 2 -P 16 -s 44100 -e
  slinear_le filenameThe audioctl(1) program can be used to show the available supported encodings:
audioctl encodingsaudioplay can be used to play Sun/NeXT audio files, and
  also RIFF WAVE audio files. audioplay can be
  configured in a web browser as the program to use when playing audio files.
In addition to the audio driver encodings list in the EXAMPLES
    section, audioplay supports playing IEEE floating
    point data in RIFF WAVE audio files (with one caveat that the floating point
    size must be native). In this case audioplay
    converts the floating point data into signed linear samples before they are
    passed to the chosen audio device.
If an invalid parameter is specified, an error is returned. The set of valid values for any audio parameter is specified by the hardware driver.
audioplay program was first seen in SunOS 5. The
  NetBSD audioplay was first
  made available in NetBSD 1.4. Support for RIFF WAVE
  recording was introduced in NetBSD 1.6. Support for
  RIFF WAVE IEEE floating point data was introduced in NetBSD
  10.0.
audioplay program was written by
  Matthew R. Green
  <mrg@eterna23.net>.
| March 3, 2024 | NetBSD 10.1 |