Struct AudioBufferInfo
Describes the format and layout of an audio buffer.
Inherited Members
Namespace: FFmpeg.Audio
Assembly: FFmpeg.dll
Syntax
public readonly struct AudioBufferInfo
Remarks
Initializes a new instance of the AudioBufferInfo struct.
Constructors
View SourceAudioBufferInfo(SampleFormat, int, int)
Describes the format and layout of an audio buffer.
Declaration
public AudioBufferInfo(SampleFormat format, int channels, int alignment = 1)
Parameters
| Type | Name | Description |
|---|---|---|
| SampleFormat | format | The sample format of the audio buffer. |
| int | channels | The number of audio channels. |
| int | alignment | The required alignment, in bytes, for each audio data plane.
Specify |
Remarks
Initializes a new instance of the AudioBufferInfo struct.
Properties
View SourceAlignment
Gets the required alignment, in bytes, for each audio data plane.
Declaration
public int Alignment { get; }
Property Value
| Type | Description |
|---|---|
| int |
Remarks
This value is passed to FFmpeg when allocating audio buffers. A value of
1 disables additional alignment.
Channels
Gets the number of audio channels in the buffer.
Declaration
public int Channels { get; }
Property Value
| Type | Description |
|---|---|
| int |
Format
Gets the sample format of the audio buffer.
Declaration
public SampleFormat Format { get; }
Property Value
| Type | Description |
|---|---|
| SampleFormat |