Skip to content

Commit

Permalink
fix: changed default audio type for windows (#1004)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaskowicz1 authored Nov 17, 2023
1 parent 42ab7e5 commit fcd23e6
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions include/dpp/discordvoiceclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,10 @@ class DPP_EXPORT discord_voice_client : public websocket_client
snowflake channel_id;

/**
* @brief The audio type to be sent. The default type is recorded audio.
* @brief The audio type to be sent.
*
* @note On Windows, the default type is overlap audio.
* On all other platforms, it is recorded audio.
*
* If the audio is recorded, the sending of audio packets is throttled.
* Otherwise, if the audio is live, the sending is not throttled.
Expand Down Expand Up @@ -594,10 +597,15 @@ class DPP_EXPORT discord_voice_client : public websocket_client
*/
enum send_audio_type_t
{
satype_recorded_audio,
satype_live_audio,
satype_recorded_audio,
satype_live_audio,
satype_overlap_audio
} send_audio_type = satype_recorded_audio;
} send_audio_type =
#ifdef _WIN32
satype_overlap_audio;
#else
satype_recorded_audio;
#endif

/**
* @brief Sets the gain for the specified user.
Expand Down

0 comments on commit fcd23e6

Please sign in to comment.