Class Packet
A DTMF (telephone-event) packet.
Inheritance
System.Object
Packet
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FM.LiveSwitch.Dtmf
Assembly: FM.LiveSwitch.dll
Syntax
public class Packet
Constructors
Packet()
Initializes a new instance of the Packet class.
Declaration
public Packet()
Properties
Duration
Gets or sets the duration in timestamp units (based on the negotiated clock rate).
Declaration
public int Duration { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
End
Gets or sets the end-bit.
Declaration
public bool End { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
EventCode
Gets or sets the event code.
Declaration
public int EventCode { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Volume
Gets or sets the volume in dBm0 with the sign removed. Power levels range from 0 to -63 dBm0, so the value of this field ranges from 0-63, with higher values indicating lower volume.
Declaration
public int Volume { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
GetLength()
Gets the length.
Declaration
public int GetLength()
Returns
Type | Description |
---|---|
System.Int32 |
ReadFrom(DataBuffer)
Reads from a data buffer.
Declaration
public static Packet ReadFrom(DataBuffer dataBuffer)
Parameters
Type | Name | Description |
---|---|---|
DataBuffer | dataBuffer | The data buffer. |
Returns
Type | Description |
---|---|
Packet |
WriteTo(DataBuffer)
Writes to a data buffer.
Declaration
public void WriteTo(DataBuffer dataBuffer)
Parameters
Type | Name | Description |
---|---|---|
DataBuffer | dataBuffer | The data buffer. |