Class Format
A G.722 format.
Inherited Members
Namespace: FM.LiveSwitch.G722
Assembly: FM.LiveSwitch.dll
Syntax
public class Format : AudioFormat
  Constructors
Format()
Initializes a new instance of the Format class.
Declaration
public Format()
  Format(AudioConfig)
Initializes a new instance of the Format class.
Declaration
public Format(AudioConfig config)
  Parameters
| Type | Name | Description | 
|---|---|---|
| AudioConfig | config | The configuration.  | 
      
Format(Int32, Int32)
Initializes a new instance of the Format class.
Declaration
public Format(int clockRate, int channelCount)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | clockRate | The clock rate.  | 
      
| System.Int32 | channelCount | The channel count.  | 
      
Properties
DefaultChannelCount
Gets the default clock rate (1).
Declaration
public static int DefaultChannelCount { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
DefaultClockRate
Gets the default clock rate (16000).
Declaration
public static int DefaultClockRate { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
DefaultConfig
Gets the default configuration (16000/1).
Declaration
public static AudioConfig DefaultConfig { get; }
  Property Value
| Type | Description | 
|---|---|
| AudioConfig | 
MaxBitrate
Gets the maximum bitrate supported by this format, in kbps.
Declaration
public override int MaxBitrate { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
Overrides
FM.LiveSwitch.MediaFormat<FM.LiveSwitch.AudioFormat>.MaxBitrate
  
  MinBitrate
Gets the minimum bitrate supported by this format, in kbps.
Declaration
public override int MinBitrate { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
Overrides
FM.LiveSwitch.MediaFormat<FM.LiveSwitch.AudioFormat>.MinBitrate
  Methods
CreateInstance()
Creates a new instance.
Declaration
protected override AudioFormat CreateInstance()
  Returns
| Type | Description | 
|---|---|
| AudioFormat |