Class AudioCodecInfo
Represents information about an audio codec, including its MIME type, SDP format parameters, channel count, and sample rate.
Implements
Namespace: Unity.RenderStreaming
Assembly: Unity.RenderStreaming.dll
Syntax
[Serializable]
public class AudioCodecInfo : IEquatable<AudioCodecInfo>
Properties
channelCount
Gets the number of audio channels.
Declaration
public int channelCount { get; }
Property Value
Type | Description |
---|---|
int |
mimeType
Gets the MIME type of the audio codec.
Declaration
public string mimeType { get; }
Property Value
Type | Description |
---|---|
string |
name
Gets the name of the audio codec.
Declaration
public string name { get; }
Property Value
Type | Description |
---|---|
string |
sampleRate
Gets the sample rate of the audio.
Declaration
public int sampleRate { get; }
Property Value
Type | Description |
---|---|
int |
sdpFmtpLine
Gets the SDP format parameters line.
Declaration
public string sdpFmtpLine { get; }
Property Value
Type | Description |
---|---|
string |
Methods
Equals(object)
Determines whether the specified object is equal to the current Audio
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current Audio |
Returns
Type | Description |
---|---|
bool | true if the specified object is equal to the current Audio |
Overrides
Equals(AudioCodecInfo)
Determines whether the specified Audio
Declaration
public bool Equals(AudioCodecInfo other)
Parameters
Type | Name | Description |
---|---|---|
Audio |
other | The Audio |
Returns
Type | Description |
---|---|
bool | true if the specified Audio |
Examples
Debug.Log(audioStreamReceiver1.codec.Equals(audioStreamReceiver2.codec));
GetHashCode()
Returns a hash code for the Audio
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current Audio |
Overrides
Operators
operator ==(AudioCodecInfo, AudioCodecInfo)
Determines whether two specified instances of Audio
Declaration
public static bool operator ==(AudioCodecInfo left, AudioCodecInfo right)
Parameters
Type | Name | Description |
---|---|---|
Audio |
left | The first Audio |
Audio |
right | The second Audio |
Returns
Type | Description |
---|---|
bool | true if the two Audio |
operator !=(AudioCodecInfo, AudioCodecInfo)
Determines whether two specified instances of Audio
Declaration
public static bool operator !=(AudioCodecInfo left, AudioCodecInfo right)
Parameters
Type | Name | Description |
---|---|---|
Audio |
left | The first Audio |
Audio |
right | The second Audio |
Returns
Type | Description |
---|---|
bool | true if the two Audio |