Table of Contents

Class ALawDecoder

Namespace
NAudio.Codecs
Assembly
NAudio.Core.dll
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

aLaw byte

a-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

source ReadOnlySpan<byte>

a-law encoded bytes.

destination Span<short>

Output samples. Must be at least as long as source.