Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AudioFormat

Represents an audio format containing information used for signal processing.
Read time 1 minuteLast updated 6 days ago

Definition

public struct AudioFormat

Remarks

An AudioFormat provides information such as sample rate, speaker setup, and buffer size. It is used by types such as ControlContext and ProcessorInstance.
Additional Resources: AudioConfiguration

Constructors

Constructor

Description

AudioFormat(UnityEngine.AudioConfiguration)Initializes a new instance of AudioFormat using the provided AudioConfiguration.
AudioFormat(UnityEngine.AudioSpeakerMode,System.Int32,System.Int32)Initializes a new instance of AudioFormat using the specified parameters.

Properties

Property

Description

bufferFrameCountThe number of audio frames processed in each audio callback.
channelCountThe number of channels represented by the current _speakerMode.
sampleRateThe sample rate this AudioFormat is configured to run at.
speakerModeThe speaker mode this AudioFormat is configured to run in.