Skip to content

Commit

Permalink
fix: uninitlized overshoot_accumulator in voice timers
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Aug 7, 2023
1 parent db55e3a commit f128783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dpp/discordvoiceclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ void discord_voice_client::write_ready()
std::chrono::nanoseconds sleep_increment = (std::chrono::nanoseconds(duration) - latency) / AUDIO_OVERLAP_SLEEP_SAMPLES;
if (sleep_time.count() > 0) {
uint16_t samples_count = 0;
std::chrono::nanoseconds overshoot_accumulator;
std::chrono::nanoseconds overshoot_accumulator{};

do {
std::chrono::high_resolution_clock::time_point start_sleep = std::chrono::high_resolution_clock::now();
Expand Down

0 comments on commit f128783

Please sign in to comment.