Class MuLawDecoder
mu-law decoder based on code from: http://hazelware.luggle.com/tutorials/mulawcompression.html
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
sourceReadOnlySpan<byte>mu-law encoded bytes.
destinationSpan<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
muLawbytemu-law encoded byte
Returns
- short
Linear sample