Yes all packets in ts3 must be under 500 bytes and you have to encode the audio before. Also the server buffers only around 3-10 seconds so you will have to manually manage your send buffer.
For a reference usage you can look here.
Ignore the entire `read==0` block and the `isStall` block. All you will need aditionally is the `PreciseAudioTimer` and the `AudioEncoder` class which are used in the method. And instead of `ffmpegProcess...` you can use any pcm 16bit LE 48khz (=WAV) audio stream. If your input steam does not have this format you will have to use a library (like ffmpeg) to convert it.
The AudioSend Method needs to be called periodically in like 5-20ms intervals.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.