A DTMF (telephone-event) packet. More...
Public Member Functions | |
| int | getDuration () |
| Gets the duration in timestamp units (based on the negotiated clock rate). More... | |
| boolean | getEnd () |
| Gets the end-bit. More... | |
| int | getEventCode () |
| Gets the event code. More... | |
| int | getLength () |
| Gets the length. More... | |
| int | getVolume () |
| Gets the volume in dBm0 with the sign removed. More... | |
| Packet () | |
| Initializes a new instance of the fm.liveswitch.dtmf.Packet class. More... | |
| void | setDuration (int value) |
| Sets the duration in timestamp units (based on the negotiated clock rate). More... | |
| void | setEnd (boolean value) |
| Sets the end-bit. More... | |
| void | setEventCode (int value) |
| Sets the event code. More... | |
| void | setVolume (int value) |
| Sets the volume in dBm0 with the sign removed. More... | |
| void | writeTo (fm.liveswitch.DataBuffer dataBuffer) |
| Writes to a data buffer. More... | |
Static Public Member Functions | |
| static fm.liveswitch.dtmf.Packet | readFrom (fm.liveswitch.DataBuffer dataBuffer) |
| Reads from a data buffer. More... | |
A DTMF (telephone-event) packet.
| fm.liveswitch.dtmf.Packet.Packet | ( | ) |
Initializes a new instance of the fm.liveswitch.dtmf.Packet class.
| int fm.liveswitch.dtmf.Packet.getDuration | ( | ) |
Gets the duration in timestamp units (based on the negotiated clock rate).
| boolean fm.liveswitch.dtmf.Packet.getEnd | ( | ) |
Gets the end-bit.
| int fm.liveswitch.dtmf.Packet.getEventCode | ( | ) |
Gets the event code.
| int fm.liveswitch.dtmf.Packet.getLength | ( | ) |
Gets the length.
| int fm.liveswitch.dtmf.Packet.getVolume | ( | ) |
Gets 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.
|
static |
Reads from a data buffer.
| dataBuffer | The data buffer. |
| void fm.liveswitch.dtmf.Packet.setDuration | ( | int | value | ) |
Sets the duration in timestamp units (based on the negotiated clock rate).
| void fm.liveswitch.dtmf.Packet.setEnd | ( | boolean | value | ) |
Sets the end-bit.
| void fm.liveswitch.dtmf.Packet.setEventCode | ( | int | value | ) |
Sets the event code.
| void fm.liveswitch.dtmf.Packet.setVolume | ( | int | value | ) |
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.
| void fm.liveswitch.dtmf.Packet.writeTo | ( | fm.liveswitch.DataBuffer | dataBuffer | ) |
Writes to a data buffer.
| dataBuffer | The data buffer. |