|
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Various units used in packets. More...
Go to the source code of this file.
Namespaces | |
| namespace | roc |
| Root namespace. | |
| namespace | roc::packet |
| Network packets and packet processing. | |
Typedefs | |
| typedef uint32_t | roc::packet::source_t |
| Packet source ID identifying packet stream. | |
| typedef uint32_t | roc::packet::timestamp_t |
| Audio packet timestamp. | |
| typedef int32_t | roc::packet::timestamp_diff_t |
| Audio packet timestamps difference. | |
| typedef uint16_t | roc::packet::seqnum_t |
| Packet sequence number in packet stream. | |
| typedef int16_t | roc::packet::seqnum_diff_t |
| Packet sequence numbers difference. | |
| typedef uint16_t | roc::packet::blknum_t |
| FEC block number in a packet stream. | |
| typedef int16_t | roc::packet::blknum_diff_t |
| FEC block numbers difference. | |
| typedef uint64_t | roc::packet::ntp_timestamp_t |
| NTP timestamp. | |
| typedef uint32_t | roc::packet::channel_mask_t |
| Bitmask of channels present in audio packet. | |
Functions | |
| timestamp_diff_t | roc::packet::timestamp_diff (timestamp_t a, timestamp_t b) |
| Compute difference between two timestamps. | |
| bool | roc::packet::timestamp_lt (timestamp_t a, timestamp_t b) |
| Check if a is before b taking possible wrap into account. | |
| bool | roc::packet::timestamp_le (timestamp_t a, timestamp_t b) |
| Check if a is before or equal to b taking possible wrap into account. | |
| seqnum_diff_t | roc::packet::seqnum_diff (seqnum_t a, seqnum_t b) |
| Compute difference between two seqnums. | |
| bool | roc::packet::seqnum_lt (seqnum_t a, seqnum_t b) |
| Check if a is before b taking possible wrap into account. | |
| bool | roc::packet::seqnum_le (seqnum_t a, seqnum_t b) |
| Check if a is before or equal to b taking possible wrap into account. | |
| blknum_diff_t | roc::packet::blknum_diff (blknum_t a, blknum_t b) |
| Compute difference between two FEC block numbers. | |
| bool | roc::packet::blknum_lt (blknum_t a, blknum_t b) |
| Check if a is before b taking possible wrap into account. | |
| bool | roc::packet::blknum_le (blknum_t a, blknum_t b) |
| Check if a is before or equal to b taking possible wrap into account. | |
| size_t | roc::packet::num_channels (channel_mask_t ch_mask) |
| Compute number of channels in mask. | |
Various units used in packets.
Definition in file units.h.