
Originally Posted by
Jhhhj_original
Alright, that already helped a lot, thanks.
But a couple more things I need:
When does the function get called?
Is it when a user starts speaking?
Or maybe every x milliseconds?
And what is the sample count in those cases?
Is it a number that makes for a valid 48 kHz opus encoder frame size?
And is there ANY decent documentation about the ts3plugin_onEditPlaybackVoiceDataEvent function?
Easy to figure out yourself, through just taking a look at those events when using the client.
onEditPlaybackVoiceDataEvent / onEditPostProcessVoiceDataEvent: For every client in your channel (other than self) while they are talking, every 10ms.
onEditCapturedVoiceDataEvent: As long as your capture device is open, every 20ms.
onEditMixedPlaybackVoiceDataEvent: As long as your playback device is open, every 10ms.
When sending PMs please make sure to include a reference link to the thread in question in the body of your message.