create Encoder
@NotNull
Creates a new audio encoder with the specified parameters.
Return
An instance of the audio encoder with the specified parameters.
Parameters
codec Info
The codec information specifying the codec to be used.
sample Rate
The sample rate of the audio data.
stereo
true
if the audio is in stereo format, false
for mono.
mtu Size
The maximum transmission unit (MTU) size for network communication.