文档

Unity Engine

Unity Engine

GeneratorInstance.Setup

Information on the audio setup of the GeneratorInstance passed back to the instantiator from GeneratorInstance.IControl<TRealtime>.Configure.
阅读时间1 分钟最后更新于 1 个月前

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 .
Setup(UnityEngine.AudioSpeakerMode,System.Int32)Create a new generator setup.