Package andesite.player
Interface FrameLossCounter
public interface FrameLossCounter
-
Field Summary
Fields Modifier and Type Field Description static intEXPECTED_PACKET_COUNT_PER_MINPacket count expected to be sent over a minute. -
Method Summary
Modifier and Type Method Description booleanisDataUsable()Returns whether or not enough data has been gathered for use.ByteRingBufferlastMinuteLoss()Returns the amount of frames lost per second over the past minute.ByteRingBufferlastMinuteSuccess()Returns the amount of frames sent per second over the past minute.
-
Field Details
-
EXPECTED_PACKET_COUNT_PER_MIN
Packet count expected to be sent over a minute.
3000 packets with 20ms of audio each.- See Also:
- Constant Field Values
-
-
Method Details
-
lastMinuteLoss
Returns the amount of frames lost per second over the past minute. Each entry corresponds to one second. Ideally, all values should be 0.
This buffer should not be modified.
This data is only valid ifisDataUsable()returns true.- Returns:
- The amount of frames lost over the past minute.
-
lastMinuteSuccess
Returns the amount of frames sent per second over the past minute. Each entry corresponds to one second. Ideally, all values should be 30.
This buffer should not be modified.
This data is only valid ifisDataUsable()returns true.- Returns:
- The amount of frames sent over the past minute.
-
isDataUsable
Returns whether or not enough data has been gathered for use.- Returns:
trueif there's enough data stored.
-