Contents

AudioMixGroup

A group that manages the playback properties of multiple playing sounds.

Declaration

struct AudioMixGroup

Overview

A mix group component manages the playback parameters for a collection of different AudioPlaybackController and AudioGeneratorController instances. Properties such as gain, fade(to:duration:), and speed are multiplicative with the parameters you set on the controller.

You associate audio resources to a mix group by setting the mixGroupName parameter in the resource’s configuration. For an example, see mixGroupName. Enable a mix group by adding it to an AudioMixGroupsComponent structure on an entity in the scene. The scene where the component belongs limits the scope of the mix group.

var mixGroup = AudioMixGroup(name: "myMixGroup")
entity.components.set(AudioMixGroupsComponent(mixGroups: [mixGroup]))

Topics

Initializers

Instance Properties

Instance Methods

See Also

Audio mixing