DPP icon indicating copy to clipboard operation
DPP copied to clipboard

`dpp::on_voice_receive_combined` called only once per tick, with not enough samples

Open tt2468 opened this issue 2 years ago • 1 comments

Describe the bug When subscribing to dpp::on_voice_receive_combined, the callback is only triggered once per audio tick (2 ticks per second, hardcoded). The audio data provided is generally only 960 stereo audio samples, or 1/25th of the expected amount.

dpp::on_voice_receive works as "expected", delivering 25x callbacks in sequence, per user, for every audio tick.

To Reproduce Steps to reproduce the behavior:

  1. Load a DPP bot into a voice channel with a music bot playing sound
  2. Subscribe to combined audio data callbacks via dpp::on_voice_receive_combined
  3. Receive only one callback of 960 (usually, sometimes many more) frames twice per second

Expected behavior While not ideal behavior, one may expect that they should also get 25x callbacks of 960 samples of combined audio data per tick, instead of just one.

System Details:

  • OS: Ubuntu 22.04

Additional Context: Patching the library to use a tick interval of 20ms instead of 500ms produces the correct number of callbacks per second (50), however, the resulting audio data is completely garbled.

tt2468 avatar Nov 19 '23 08:11 tt2468

This issue has had no activity and is being marked as stale. If you still wish to continue with this issue please comment to reopen it.

github-actions[bot] avatar Jan 19 '24 02:01 github-actions[bot]

This issue has had no activity and is being marked as stale. If you still wish to continue with this issue please comment to reopen it.

github-actions[bot] avatar May 29 '24 02:05 github-actions[bot]