serenity-rs / songbird

An async Rust library for the Discord voice API
ISC License
384 stars 110 forks source link

Driver/receive: Implement audio reorder/jitter buffer #156

Closed FelixMcFelix closed 1 year ago

FelixMcFelix commented 1 year ago

This PR Introduces a new VoiceTick event which collects and reorders all RTP packets to smooth over network instability, as well as to synchronise user audio streams. Raw packet events have been moved to RtpPacket, while SpeakingUpdates have been removed as they can be easily computed using the silent/speaking audio maps included in each event.

Closes #146.