Navigation

Operators and Keywords

Function List:

C++ API

: lin2mu (x, n)

Convert audio data from linear to mu-law.

Mu-law values use 8-bit unsigned integers. Linear values use n-bit signed integers or floating point values in the range -1 ≤ x ≤ 1 if n is 0.

If n is not specified it defaults to 0, 8, or 16 depending on the range of values in x.

See also: mu2lin.

Package: octave