Show / Hide Table of Contents

Struct AudioBufferInfo

Describes the format and layout of an audio buffer.

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.GetType()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: FFmpeg.Audio
Assembly: FFmpeg.dll
Syntax
public readonly struct AudioBufferInfo
Remarks

Initializes a new instance of the AudioBufferInfo struct.

Constructors

View Source

AudioBufferInfo(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 1 to disable additional alignment.

Remarks

Initializes a new instance of the AudioBufferInfo struct.

Properties

View Source

Alignment

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.

View Source

Channels

Gets the number of audio channels in the buffer.

Declaration
public int Channels { get; }
Property Value
Type Description
int
View Source

Format

Gets the sample format of the audio buffer.

Declaration
public SampleFormat Format { get; }
Property Value
Type Description
SampleFormat
  • View Source
In this article
Back to top Generated by DocFX