logo

hare-audio

Audio format library for Hare git clone https://hacktivis.me/git/hare-audio.git
commit: b4cb1a1b8ca2b4298684c35688fc4f90a63f98d2
parent f2a782dac74ac44e051975b02722f53793235f90
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat, 11 Feb 2023 19:49:11 +0100

format/au: Move encoding bitsize to the end

Diffstat:

Mformat/au/au.ha22+++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/format/au/au.ha b/format/au/au.ha @@ -4,20 +4,20 @@ use endian; use bytes; export type encoding = enum u32 { - _8B_G711_ULAW = 1, - _8B_LPCM = 2, - _16B_LPCM = 3, - _24B_LPCM = 4, - _32B_LPCM = 5, + G711_ULAW_8B = 1, + LPCM_8B = 2, + LPCM_16B = 3, + LPCM_24B = 4, + LPCM_32B = 5, - _32B_FPCM = 6, - _64B_FPCM = 7, + FPCM_32B = 6, + FPCM_64B = 7, - _4B_G721_ADPCM = 23, + G721_ADPCM_4B = 23, - _3B_G723_ADPCM = 25, + G723_ADPCM_3B = 25, - _8B_G711_ALAW = 27, + G711_ALAW_8B = 27, }; export type header = struct { @@ -56,7 +56,7 @@ export fn write_header(h: io::handle, au: *header) (void | io::error) = { let header = header { extra_offset = 0, length = 0, - encoding = encoding::_8B_LPCM, + encoding = encoding::LPCM_8B, samplerate = 8000, channels = 1, };