Update README.md
This commit is contained in:
@@ -113,3 +113,5 @@ public byte[] provide() {
|
|||||||
# Receiving audio
|
# Receiving audio
|
||||||
|
|
||||||
Refer to the `setVoiceHandler` and `setWhisperHandler` methods to supply a Consumer object to receive Voice and Whisper packets. You will need to decode the packets yourself, and insert packet-loss-correction as needed.
|
Refer to the `setVoiceHandler` and `setWhisperHandler` methods to supply a Consumer object to receive Voice and Whisper packets. You will need to decode the packets yourself, and insert packet-loss-correction as needed.
|
||||||
|
|
||||||
|
Note that the first 5 packets starting a voice session are marked with the COMPRESSED flag. The final voice packet, intended to singal to close your decoder and flush samples, is always empty (0-length byte array).
|
||||||
|
|||||||
Reference in New Issue
Block a user