Table of Contents

Class G722CodecState

Namespace
NAudio.Codecs
Assembly
NAudio.Core.dll

Stores state to be used between calls to Encode or Decode

public class G722CodecState
Inheritance
G722CodecState
Inherited Members

Constructors

G722CodecState(int, G722Flags)

Creates a new instance of G722 Codec State for a new encode or decode session

public G722CodecState(int rate, G722Flags options)

Parameters

rate int

Bitrate (typically 64000)

options G722Flags

Special options

Properties

Band

Band

public Band[] Band { get; }

Property Value

Band[]

BitsPerSample

Bits Per Sample 6 for 48000kbps, 7 for 56000kbps, or 8 for 64000kbps.

public int BitsPerSample { get; }

Property Value

int

EncodeFrom8000Hz

8kHz Sampling TRUE if encode from 8k samples/second

public bool EncodeFrom8000Hz { get; }

Property Value

bool

InBits

Number of bits in InBuffer

public int InBits { get; }

Property Value

int

InBuffer

In bit buffer

public uint InBuffer { get; }

Property Value

uint

ItuTestMode

ITU Test Mode TRUE if the operating in the special ITU test mode, with the band split filters disabled.

public bool ItuTestMode { get; set; }

Property Value

bool

OutBits

Number of bits in OutBuffer

public int OutBits { get; }

Property Value

int

OutBuffer

Out bit buffer

public uint OutBuffer { get; }

Property Value

uint

Packed

TRUE if the G.722 data is packed

public bool Packed { get; }

Property Value

bool

QmfSignalHistory

Signal history for the QMF (x)

public int[] QmfSignalHistory { get; }

Property Value

int[]