🔇 feat(audio): Add option to disable muxed audio event processing#21
Open
kirill-jjj wants to merge 1 commit intoBlindMaster24:masterfrom
Open
🔇 feat(audio): Add option to disable muxed audio event processing#21kirill-jjj wants to merge 1 commit intoBlindMaster24:masterfrom
kirill-jjj wants to merge 1 commit intoBlindMaster24:masterfrom
Conversation
Introduces an `enable_muxed_audio` flag to `TeamTalkInstance` and `TeamTalkBot.add_server`. When set to `False`, this flag disables the reception and processing of muxed audio events at the SDK level, reducing CPU overhead for bots that do not require mixed audio. - Added `enable_muxed_audio` parameter to `TeamTalkInstance.__init__` and `TeamTalkBot.add_server`. - Implemented SDK-level disabling of muxed audio events in `TeamTalkInstance.login` based on the flag. - Modified `_process_events` to conditionally enable/disable muxed audio events for `TT_MUXED_USERID` when joining/leaving channels, respecting the `enable_muxed_audio` flag.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduces an
enable_muxed_audioflag toTeamTalkInstanceandTeamTalkBot.add_server. When set toFalse, this flag disables the reception and processing of muxed audio events at the SDK level, reducing CPU overhead for bots that do not require mixed audio.enable_muxed_audioparameter toTeamTalkInstance.__init__andTeamTalkBot.add_server.TeamTalkInstance.loginbased on the flag._process_eventsto conditionally enable/disable muxed audio events forTT_MUXED_USERIDwhen joining/leaving channels, respecting theenable_muxed_audioflag.