From e7ad7ca5a000064e3de9337cb4839761eb4b75c6 Mon Sep 17 00:00:00 2001 From: Craig Edwards Date: Fri, 4 Oct 2024 23:09:51 +0000 Subject: [PATCH] add DAVE to voice model --- docpages/advanced_reference/voice_model.md | 20 ++++++++++++++++++++ docpages/make_a_bot/clion.md | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/docpages/advanced_reference/voice_model.md b/docpages/advanced_reference/voice_model.md index 10bf1d4419..ae5615854a 100644 --- a/docpages/advanced_reference/voice_model.md +++ b/docpages/advanced_reference/voice_model.md @@ -109,6 +109,26 @@ digraph "Example Directory" { "HTTP/1.1 101 Switching Protocols" -> "discord_voice_client::handle_frame"; label = "Do the voice stuff."; + + "discord_voice_client::handle_frame"-> "DAVE enabled"; + "discord_voice_client::handle_frame"-> "DAVE disabled"; + "DAVE disabled"->"discord_voice_client::send_audio_*()"; + "discord_voice_client::send_audio_*()" -> "Dave encryption on"; + "discord_voice_client::send_audio_*()" -> "Dave encryption off"; + "Dave encryption on" -> "AES AEAD encryption\nof OPUS stream\nusing ratchet"; + "AES AEAD encryption\nof OPUS stream\nusing ratchet" -> "SODIUM encryption (xchacha20_poly1305_aead)"; + "Dave encryption off" -> "SODIUM encryption (xchacha20_poly1305_aead)"; + "SODIUM encryption (xchacha20_poly1305_aead)" -> "UDP sendto"; + "UDP sendto" -> "Discord RTP server"; + "DAVE enabled" -> "MLS send key package"; + "MLS send key package" -> "MLS receive external sender"; + "MLS receive external sender" -> "MLS proposals"; + "MLS proposals" -> "MLS Welcome"; + "MLS proposals" -> "MLS Commit"; + "MLS Commit" -> "DAVE begin transition"; + "MLS Welcome" -> "DAVE begin transition"; + "DAVE begin transition" -> "Dave execute transition"; + "Dave execute transition" -> "discord_voice_client::send_audio_*()"; } "Your bot" -> "guild::connect_member_voice"; diff --git a/docpages/make_a_bot/clion.md b/docpages/make_a_bot/clion.md index 41d1f3f559..da8e6b0b7f 100644 --- a/docpages/make_a_bot/clion.md +++ b/docpages/make_a_bot/clion.md @@ -10,7 +10,7 @@ Now, you can open your `main.cpp` file. If you have code there, then you're one \include{cpp} firstbot.cpp -now, you can go ahead and hit the green "Run" button in the top-right to run the bot. +Now, you can go ahead and hit the green "Run" button in the top-right to run the bot. **Congratulations, you've successfully set up a bot!**