create Direct Source
abstract fun createDirectSource(player: VoicePlayer, stereo: Boolean = false, decoderInfo: CodecInfo? = OpusDecoderInfo()): ServerDirectSource
Creates a new direct source.
Direct sources are used to send audio data directly to the players.
Return
A new ServerDirectSource instance.
Parameters
player
The player attached to the direct source.
stereo
Whether the source should be stereo (default is false).
decoder Info
Optional decoder information, default is OpusDecoderInfo.
Creates a new direct source.
Direct sources are used to send audio data directly to the players.
Return
A new ServerDirectSource instance.
Parameters
player
The player attached to the direct source.
stereo
Whether the source should be stereo (default is false).