Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GeneratorInstance.Setup

Information on the audio setup of the GeneratorInstance passed back to the instantiator from GeneratorInstance.IControl<TRealtime>.Configure.
Read time 1 minuteLast updated 6 days ago

Definition

public readonly struct GeneratorInstance.Setup

Remarks

Additional Resources: ControlContext.GetConfiguration

Fields

Value

Description

sampleRateDeclare the sample rate the output of this GeneratorInstance will be played at.
speakerModeDeclare the AudioSpeakerMode of this GeneratorInstance and by extension the number of channels this GeneratorInstance will use.

Constructors

Constructor

Description

Setup(UnityEngine.Audio.AudioFormat@)Create a new generator setup, deriving values from
fromFormat
.
Setup(UnityEngine.AudioSpeakerMode,System.Int32)Create a new generator setup.