Class AudioEncodingConfig
Audio encoding configuration.
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class AudioEncodingConfig : EncodingConfig
Constructors
AudioEncodingConfig()
Initializes a new instance of the AudioEncodingConfig class.
Declaration
public AudioEncodingConfig()
AudioEncodingConfig(EncodingInfo)
Initializes a new instance of the AudioEncodingConfig class.
Declaration
public AudioEncodingConfig(EncodingInfo encoding)
Parameters
Type | Name | Description |
---|---|---|
EncodingInfo | encoding | The encoding. |
Methods
FromJson(String)
Deserializes an instance from JSON.
Declaration
public static AudioEncodingConfig FromJson(string encodingConfigJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | encodingConfigJson | The serialized JSON. |
Returns
Type | Description |
---|---|
AudioEncodingConfig | The deserialized instance. |
FromJsonArray(String)
Deserializes an array from JSON.
Declaration
public static AudioEncodingConfig[] FromJsonArray(string encodingConfigsJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | encodingConfigsJson | The serialized JSON. |
Returns
Type | Description |
---|---|
AudioEncodingConfig[] | The deserialized array. |
ToJson()
Serializes this instance to JSON.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String |
ToJson(AudioEncodingConfig)
Serializes an instance to JSON.
Declaration
public static string ToJson(AudioEncodingConfig encodingConfig)
Parameters
Type | Name | Description |
---|---|---|
AudioEncodingConfig | encodingConfig | The instance to serialize. |
Returns
Type | Description |
---|---|
System.String | The serialized JSON. |
ToJsonArray(AudioEncodingConfig[])
Serializes an array to JSON.
Declaration
public static string ToJsonArray(AudioEncodingConfig[] encodingConfigs)
Parameters
Type | Name | Description |
---|---|---|
AudioEncodingConfig[] | encodingConfigs | The array to serialize. |
Returns
Type | Description |
---|---|
System.String | The serialized JSON. |
ToString()
Returns a string that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents this instance. |