createDirectSource

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).

decoderInfo

Optional decoder information, default is OpusDecoderInfo.


open fun createDirectSource(player: VoicePlayer, stereo: Boolean = false): 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).