Struct RAWBaseAudioInfo
- Namespace
- VisioForge.Core.Types
- Assembly
- VisioForge.Core.dll
Represents fundamental information about a raw audio stream. This struct provides details such as bits per sample, number of channels, sample rate, and audio format.
public struct RAWBaseAudioInfoInherited Members
Remarks
This struct is critical for interoperation with unmanaged code and is marked with [StructLayout(LayoutKind.Sequential)]
to ensure its memory layout matches native structures. Do not modify its structure without careful consideration of compatibility.
The BPS (Bits Per Sample) field indicates the bit depth of each audio sample.
Channels typically range from 1 (mono) to 2 (stereo) for common audio, but can be higher for surround sound (5.1 = 6 channels, 7.1 = 8 channels).
SampleRate is measured in Hz and determines the audio quality and frequency range - 44100 Hz is CD quality, 48000 Hz is DVD/professional quality.
The Format field disambiguates between different representations of the same bit depth (e.g., PCM16 vs IEEE32).
This struct is used throughout the framework to describe audio streams in a consistent, platform-independent manner.
Fields
BPS
Gets or sets the bits per sample (bit depth) of the audio data. Common values include 8, 16, 24, 32.
public int BPSField Value
Channels
Gets or sets the number of audio channels. Common values are 1 for mono, 2 for stereo.
public int ChannelsField Value
Format
Gets or sets the VisioForge.Core.Types.AudioFormat of the audio data. This specifies whether the data is PCM, IEEE float, and its bit depth type.
public AudioFormat FormatField Value
SampleRate
Gets or sets the sample rate of the audio stream in Hertz (Hz). Common values include 44100 Hz (CD quality) or 48000 Hz.
public int SampleRateField Value
Methods
ToString()
Returns a string that represents the current VisioForge.Core.Types.RAWBaseAudioInfo instance. The string includes the bits per sample, channels, sample rate, and audio format.
public override string ToString()