Enum AudioFormat
- Namespace
- VisioForge.Core.Types
- Assembly
- VisioForge.Core.dll
Defines the audio format for raw audio data, specifying whether it is Pulse-Code Modulation (PCM), IEEE floating-point, or encoded. This enumeration is crucial for configuring audio streams and ensuring correct data interpretation throughout the framework.
public enum AudioFormatFields
PCM8 = 0-
8-bit unsigned integer Pulse-Code Modulation (PCM) format. This format provides a basic level of audio quality.
PCM16 = 1-
16-bit signed integer PCM format. This is a standard format for CD-quality audio.
PCM24 = 2-
24-bit signed integer PCM format. Used in professional audio for higher dynamic range.
PCM32 = 3-
32-bit signed integer PCM format. Offers even greater precision than 24-bit PCM.
IEEE32 = 4-
32-bit floating-point (IEEE 754) format. Commonly used in audio processing to prevent clipping and preserve quality during intermediate calculations.
Unknown = 5-
Represents an unknown or unspecified audio format. This value is typically used as a default or to indicate an error state.
IEEE64 = 6-
64-bit double-precision floating-point (IEEE 754) format. Provides the highest level of precision for audio processing, though it is less common and more resource-intensive.
Encoded = 7-
Indicates that the audio data is in a compressed or encoded format (e.g., MP3, AAC), rather than raw PCM samples.
Remarks
Use this enumeration to specify the sample format for audio capture, processing, and playback. When setting up an audio source, select a member of this enum to define the expected audio data format. PCM formats are uncompressed and represent the actual audio waveform as digital samples. IEEE formats use floating-point representation for greater precision in audio processing workflows. The Encoded format indicates that audio data is compressed using a codec such as MP3, AAC, or Opus.