- Ignored intent warnings on startup

- Moved FilterWordsChannelId to a separate table (needs testing)
- Some todos updated
This commit is contained in:
Kwoth
2022-01-10 14:18:34 +01:00
parent c58ae9fc13
commit b044eb2d9a
9 changed files with 2976 additions and 128 deletions

View File

@@ -58,7 +58,7 @@ namespace Ayu.Discord.Voice
_arrayPool = ArrayPool<byte>.Shared;
}
// todo 3.2 direct opus streams
// todo future direct opus streams
public int SendPcmFrame(VoiceGateway gw, Span<byte> data, int offset, int count)
{
var secretKey = gw.SecretKey;
@@ -148,7 +148,7 @@ namespace Ayu.Discord.Voice
Buffer.BlockCopy(nonce, 0, rtpData, rtpDataLength - 4, 4);
gw.SendRtpData(rtpData, rtpDataLength);
// todo 3.2 When there's a break in the sent data,
// todo future When there's a break in the sent data,
// the packet transmission shouldn't simply stop.
// Instead, send five frames of silence (0xF8, 0xFF, 0xFE)
// before stopping to avoid unintended Opus interpolation