A bitrate monitor.
More...
◆ BitrateMonitor()
◆ getBitrate()
double fm.liveswitch.BitrateMonitor.getBitrate |
( |
| ) |
|
Gets the bitrate, in kbps.
◆ getSmoothedBitrate()
double fm.liveswitch.BitrateMonitor.getSmoothedBitrate |
( |
| ) |
|
Gets the smoothed bitrate, in kbps.
◆ getSystemClock()
◆ reset()
void fm.liveswitch.BitrateMonitor.reset |
( |
| ) |
|
◆ testBitrate()
double fm.liveswitch.BitrateMonitor.testBitrate |
( |
long |
bitCount | ) |
|
Returns the new bitrate if a new sample is added.
- Parameters
-
bitCount | The new bit count. |
◆ testSmoothedBitrate()
double fm.liveswitch.BitrateMonitor.testSmoothedBitrate |
( |
long |
bitCount | ) |
|
Returns the new bitrate if a new sample is added.
- Parameters
-
bitCount | The new bit count. |
◆ update()
void fm.liveswitch.BitrateMonitor.update |
( |
long |
bitCount | ) |
|
Adds a sample.
This sample should be the total bits sent (or received) over the lifetime of the owning class. A sample should be added every time a packet is sent (or received).
- Parameters
-
bitCount | The new bit count. |