From afd906c45b6795eac019141df81bb5d2160b7a69 Mon Sep 17 00:00:00 2001 From: Craig Edwards Date: Sat, 5 Oct 2024 00:42:22 +0000 Subject: [PATCH] feat: DAVE received audio decryption --- src/dpp/voice/enabled/read_ready.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dpp/voice/enabled/read_ready.cpp b/src/dpp/voice/enabled/read_ready.cpp index 48ad8aadd5..ac17a3e9ac 100644 --- a/src/dpp/voice/enabled/read_ready.cpp +++ b/src/dpp/voice/enabled/read_ready.cpp @@ -146,10 +146,10 @@ void discord_voice_client::read_ready() /** * If DAVE is enabled, use the user's ratchet to decrypt the OPUS audio data */ + std::vector frame(opus_packet_len * 2); if (is_end_to_end_encrypted()) { auto decryptor = mls_state->decryptors.find(vp.vr->user_id); if (decryptor != mls_state->decryptors.end()) { - std::vector frame(opus_packet_len * 2); size_t enc_len = decryptor->second->decrypt( dave::MediaType::Audio, dave::make_array_view(opus_packet, opus_packet_len),