From 1b9fd644303f6370e52664118af89772fb189fde Mon Sep 17 00:00:00 2001 From: Jaskowicz1 Date: Wed, 20 Sep 2023 11:58:29 +0100 Subject: [PATCH] docs: fixed a reference issue and added more information in discordvoiceclient.h --- include/dpp/discordvoiceclient.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/dpp/discordvoiceclient.h b/include/dpp/discordvoiceclient.h index 1144dda7f9..b9d6d51637 100644 --- a/include/dpp/discordvoiceclient.h +++ b/include/dpp/discordvoiceclient.h @@ -685,13 +685,13 @@ class DPP_EXPORT discord_voice_client : public websocket_client * ready to send and know its length it is advisable to call this * method multiple times to enqueue the entire stream audio so that * it is all encoded at once (unless you have set use_opus to false). - * Constantly calling this from the dpp::on_voice_buffer_send callback - * can and will eat a TON of cpu! + * **Constantly calling this from dpp::cluster::on_voice_buffer_send + * can, and will, eat a TON of cpu!** * * @param audio_data Raw PCM audio data. Channels are interleaved, * with each channel's amplitude being a 16 bit value. * - * The audio data should be 48000Hz signed 16 bit audio. + * @warning **The audio data needs to be 48000Hz signed 16 bit audio, otherwise, the audio will come through incorrectly!** * * @param length The length of the audio data. The length should * be a multiple of 4 (2x 16 bit stereo channels) with a maximum