AudioFormat
Represents an audio format containing information used for signal processing.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.Audio
- Assembly: UnityEngine.AudioModule
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 |
|---|---|
| bufferFrameCount | The number of audio frames processed in each audio callback. |
| channelCount | The number of channels represented by the current _speakerMode. |
| sampleRate | The sample rate this AudioFormat is configured to run at. |
| speakerMode | The speaker mode this AudioFormat is configured to run in. |