createBroadcastSource

abstract fun createBroadcastSource(stereo: Boolean = false, decoderInfo: CodecInfo? = OpusDecoderInfo()): ServerBroadcastSource

Creates a new broadcast source.

Broadcast sources are used to send audio data directly to the group of players. By default, it sends packets to all players with Plasmo Voice installed, but you can change a group of players using ServerBroadcastSource.players

Return

A new ServerBroadcastSource instance.

Parameters

stereo

Whether the source should be stereo (default is false).

decoderInfo

Optional decoder information, default is OpusDecoderInfo.


Creates a new broadcast source.

Broadcast sources are used to send audio data directly to the group of players. By default, it sends packets to all players with Plasmo Voice installed, but you can change a group of players using ServerBroadcastSource.players

Return

A new ServerBroadcastSource instance.

Parameters

stereo

Whether the source should be stereo (default is false).