Skip to content

🔇 feat(audio): Add option to disable muxed audio event processing#21

Open
kirill-jjj wants to merge 1 commit intoBlindMaster24:masterfrom
kirill-jjj:audio-fix
Open

🔇 feat(audio): Add option to disable muxed audio event processing#21
kirill-jjj wants to merge 1 commit intoBlindMaster24:masterfrom
kirill-jjj:audio-fix

Conversation

@kirill-jjj
Copy link
Contributor

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant