au.5x (2371B)
- .\" This file is part of Cross Unix Documentation
- .\" Copyright © 2019-2021 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
- .\" SPDX-License-Identifier: CC-BY-4.0
- .Dd 2021-03-12
- .Dt AU 5x
- .Os
- .Sh PROLOG
- This manual page is part of
- .Lk https://hacktivis.me/git/cross-unix-documentation "Cross-Unix Documentation"
- which is an attempt to provide documentation of similarities and (noteworthy) differencies between Unix-like systems.
- To be used as an addition to the POSIX standard.
- .Sh NAME
- .Nm au
- .Nd AU/.snd Audio Format
- .Sh DESCRIPTION
- .Nm
- is a simple Audio Format that came from Sun/NeXT, it is widely supported on Unix systems.
- .Ss Header
- All fields are 32-bits (so 4 octets) unsigned big-endian integers.
- .Bl -tag -width Ds
- .It magic
- Always equal to 0x2E736E64 (".snd")
- .It header size
- number of octets the header contains; 24 if no further info was added
- .It data size
- number of octets the data contains; 0 or 0xFFFFFFFF for undefined
- .It encoding
- refer to codecs section
- .It sample rate
- number of samples per seconds (aka Hz). Common ones are 8000, 11025, 16000, 22050, 32000, 44100, and 48000 Hz.
- .It channels
- Number of interleaved channels. 1 for mono, 2 for stereo, ...
- .El
- .Pp
- You may append information after the header in multiple of 8 octets that is terminated and filled with NULL octets.
- Pure ASCII is the strongly suggested usage but it seen as implementation defined.
- .Ss Codecs
- .Bl -tag -width Ds
- .It 01
- 8-bit G.711 µ-law
- .It 02
- unsigned 8-bit linear PCM
- .It 03
- 16-bit linear PCM
- .It 04
- 24-bit linear PCM
- .It 05
- 32-bit linear PCM
- .It 06
- 32-bit IEEE floating point
- .It 07
- 64-bit IEEE floating point
- .It 23
- 4-bit CCITT G.721 ADPCM
- .It 25
- CCITT G.723 3-bit ADPCM
- .It 27
- 8-bit G.711 A-law
- .El
- .Pp
- Note: Linear PCM data is signed and zero-centered.
- .Sh SOURCE
- .Bl -bullet -compact
- .It
- .Lk https://code.9front.org/hg/plan9front/file/default/sys/src/cmd/audio/sundec 9front's /sys/src/cmd/audio/sundec
- .It
- .Lk https://wiki.multimedia.cx/index.php/Au/snd Au/snd - MultimediaWiki
- .It
- .Lk https://pubs.opengroup.org/external/auformat.html AU - Audio File Format © Sun Microsystems 1992
- .It
- .Lk http://sox.sourceforge.net/AudioFormats-11.html#ss11.2
- .It
- .Xr audio_filehdr 3 ,
- .Xr audio_hdr 3
- .It
- .Lk https://docs.python.org/3/library/sunau.html Python3 sunau module documentation
- .El
- .Sh AUTHORS
- .An Haelwenn (lanodan) Monnier Aq Mt contact+c-u-d@hacktivis.me