AudioResourceConfig

class AudioResourceConfig(mixerGroupID: String, ambisonicsType: AmbisonicsType = AmbisonicsType.NONE)

The configuration of com.pico.spatial.core.ecs.resource.AudioResource. This class is used to configure the audio resource with a mix group name which is hold by com.pico.spatial.core.ecs.resource.AudioMixerGroupResource which will be used by com.pico.spatial.core.ecs.AudioMixerGroupsComponent. The mixerGroupID can link com.pico.spatial.core.ecs.resource.AudioResource,com.pico.spatial.core.ecs.resource.AudioMixerGroupResource and com.pico.spatial.core.ecs.AudioMixerGroupsComponent together, so that user can control the volume and playbackRate of the audio resources as a group.

Parameters

mixerGroupID

The name of the mix group.

ambisonicsType

The ambisonics audio type of the current audio resource.

Constructors

Link copied to clipboard
constructor(mixerGroupID: String, ambisonicsType: AmbisonicsType = AmbisonicsType.NONE)