Table of Contents

Class MuLawDecoder

Namespace
NAudio.Codecs
Assembly
NAudio.Core.dll
public static class MuLawDecoder
Inheritance
MuLawDecoder
Inherited Members

Methods

Decode(ReadOnlySpan<byte>, Span<short>)

Decodes a block of mu-law encoded bytes into 16 bit linear samples.

public static void Decode(ReadOnlySpan<byte> source, Span<short> destination)

Parameters

source ReadOnlySpan<byte>

mu-law encoded bytes.

destination Span<short>

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

MuLawToLinearSample(byte)

Converts a mu-law encoded byte to a 16 bit linear sample

public static short MuLawToLinearSample(byte muLaw)

Parameters

muLaw byte

mu-law encoded byte

Returns

short

Linear sample