serenity-rs / songbird

An async Rust library for the Discord voice API
ISC License
381 stars 108 forks source link

Move empty packet check to also cover 48kHz audio #225

Closed FelixMcFelix closed 4 months ago

FelixMcFelix commented 4 months ago

Previously, we were only skipping zero-packet frames when we needed to resample because the source sampling rate was not set to 48kHz. This check should have also been applied in the case that a packet did not need a resampler to be built.

Fixes #224.