Class ALawDecoder
a-law decoder based on code from: http://hazelware.luggle.com/tutorials/mulawcompression.html
public class ALawDecoder
- Inheritance
-
ALawDecoder
- Inherited Members
Methods
ALawToLinearSample(byte)
Converts an a-law encoded byte to a 16 bit linear sample
public static short ALawToLinearSample(byte aLaw)
Parameters
aLawbytea-law encoded byte
Returns
- short
Linear sample
Decode(ReadOnlySpan<byte>, Span<short>)
Decodes a block of a-law encoded bytes into 16 bit linear samples.
public static void Decode(ReadOnlySpan<byte> source, Span<short> destination)
Parameters
sourceReadOnlySpan<byte>a-law encoded bytes.
destinationSpan<short>Output samples. Must be at least as long as
source.