createStaticSource

abstract fun createStaticSource(position: ServerPos3d, stereo: Boolean = false, decoderInfo: CodecInfo? = OpusDecoderInfo()): ServerStaticSource

Creates a new static source.

Static source is a proximity source attached to the specified world position.

Return

A new ServerStaticSource instance.

Parameters

position

The world position.

stereo

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

decoderInfo

Optional decoder information, default is OpusDecoderInfo.


open fun createStaticSource(position: ServerPos3d, stereo: Boolean = false): ServerStaticSource

Creates a new static source.

Static source is a proximity source attached to the specified world position.

Return

A new ServerStaticSource instance.

Parameters

position

The world position.

stereo

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