Show / Hide Table of Contents

Class AudioBufferSink

Represents an audio buffer sink filter that receives audio frames from a filter graph.

Inheritance
object
OptionQueryableBase
FilterContext
AudioBufferSink
Implements
IOptionQueryable
ILoggingContext
IAVPointer<_AVFilterContext>
IBufferSource
IBufferSink
Inherited Members
FilterContext.Allocate(string, Filter, FilterGraph)
FilterContext.Create(string, Filter, FilterGraph)
FilterContext.Create(string, Filter, string, FilterGraph)
FilterContext.Create(string, Filter, AVDictionary, FilterGraph)
FilterContext.Create(string, Filter, IDictionary<string, string>, FilterGraph)
FilterContext.Create(string, Filter, AVMultiDictionary, FilterGraph)
FilterContext.As<T>()
FilterContext.Init(string)
FilterContext.Init()
FilterContext.Init(AVDictionary)
FilterContext.Init(AVMultiDictionary)
FilterContext.Init(IDictionary<string, string>)
FilterContext.ToString()
FilterContext.GetInputFilterPad(int)
FilterContext.GetOutputFilterPad(int)
FilterContext.GetInputFilterLink(int)
FilterContext.GetOutputFilterLink(int)
FilterContext.Delete()
FilterContext.Pointer
FilterContext.Filter
FilterContext.Name
FilterContext.Threads
FilterContext.HwDeviceContext
FilterContext.ExtraHWFrames
FilterContext.InputCount
FilterContext.OutputCount
FilterContext.InputFilterPads
FilterContext.OutputFilterPads
FilterContext.InputFilterLinks
FilterContext.OutputFilterLinks
OptionQueryableBase.ResetOptions()
OptionQueryableBase.GetOptions(bool)
OptionQueryableBase.FindOption(string, bool)
OptionQueryableBase.SetOption(string, string, bool)
OptionQueryableBase.SetOption(string, long, bool)
OptionQueryableBase.SetOption(string, bool, bool)
OptionQueryableBase.SetOption(string, double, bool)
OptionQueryableBase.SetOption(string, Rational, bool)
OptionQueryableBase.SetOption(string, ReadOnlySpan<byte>, bool)
OptionQueryableBase.SetOption(string, ReadOnlyMemory<byte>, bool)
OptionQueryableBase.SetOption(string, int, int, bool)
OptionQueryableBase.SetOption(string, (int Width, int Height), bool)
OptionQueryableBase.SetOption(string, PixelFormat, bool)
OptionQueryableBase.SetOption(string, SampleFormat, bool)
OptionQueryableBase.SetOption(string, IDictionary<string, string>, bool)
OptionQueryableBase.SetOption(string, ILookup<string, string>, bool)
OptionQueryableBase.SetOption(IDictionary<string, string>, bool)
OptionQueryableBase.SetOption(string, ref ILookup<string, string>, bool)
OptionQueryableBase.SetOption<T>(string, T, bool)
OptionQueryableBase.SetOption(string, object, bool)
OptionQueryableBase.SetOption(Option, string, bool)
OptionQueryableBase.SetOption(Option, bool, bool)
OptionQueryableBase.SetOption(Option, long, bool)
OptionQueryableBase.SetOption(Option, double, bool)
OptionQueryableBase.SetOption(Option, Rational, bool)
OptionQueryableBase.SetOption(Option, ReadOnlySpan<byte>, bool)
OptionQueryableBase.SetOption(Option, ReadOnlyMemory<byte>, bool)
OptionQueryableBase.SetOption(Option, int, int, bool)
OptionQueryableBase.SetOption(Option, (int Width, int Height), bool)
OptionQueryableBase.SetOption(Option, PixelFormat, bool)
OptionQueryableBase.SetOption(Option, SampleFormat, bool)
OptionQueryableBase.SetOption(Option, IDictionary<string, string>, bool)
OptionQueryableBase.SetOption(Option, ILookup<string, string>, bool)
OptionQueryableBase.SetOption<T>(Option, T, bool)
OptionQueryableBase.SetOption(Option, object, bool)
OptionQueryableBase.TryGetOption(string, out string, bool)
OptionQueryableBase.TryGetOption(string, out long, bool)
OptionQueryableBase.TryGetOption<T>(string, out T, bool)
OptionQueryableBase.TryGetOption(string, out ulong, bool)
OptionQueryableBase.TryGetOption(string, out int, bool)
OptionQueryableBase.TryGetOption(string, out bool, bool)
OptionQueryableBase.TryGetOption(string, out uint, bool)
OptionQueryableBase.TryGetOption(string, out double, bool)
OptionQueryableBase.TryGetOption(string, out Rational, bool)
OptionQueryableBase.TryGetOption(string, out PixelFormat, bool)
OptionQueryableBase.TryGetOption(string, out SampleFormat, bool)
OptionQueryableBase.TryGetOption(string, out IDictionary<string, string>, bool)
OptionQueryableBase.TryGetOption(string, out Dictionary<string, string>, bool)
OptionQueryableBase.TryGetOption(string, out AVDictionary, bool)
OptionQueryableBase.TryGetOption(string, out ILookup<string, string>, bool)
OptionQueryableBase.TryGetOption(string, out AVMultiDictionary, bool)
OptionQueryableBase.TryGetOption(string, out int, out int, bool)
OptionQueryableBase.TryGetOption(string, out (int Width, int Height), bool)
OptionQueryableBase.TryGetOption(string, Span<byte>, bool)
OptionQueryableBase.TryGetOption(string, out byte[], bool)
OptionQueryableBase.TryGetOption(string, out Memory<byte>, bool)
OptionQueryableBase.TryGetOption(string, out ReadOnlyMemory<byte>, bool)
OptionQueryableBase.TryGetOption(string, out object, bool)
OptionQueryableBase.TryGetOption(Option, out string, bool)
OptionQueryableBase.TryGetOption(Option, out long, bool)
OptionQueryableBase.TryGetOption<T>(Option, out T, bool)
OptionQueryableBase.TryGetOption(Option, out ulong, bool)
OptionQueryableBase.TryGetOption(Option, out int, bool)
OptionQueryableBase.TryGetOption(Option, out bool, bool)
OptionQueryableBase.TryGetOption(Option, out uint, bool)
OptionQueryableBase.TryGetOption(Option, out double, bool)
OptionQueryableBase.TryGetOption(Option, out Rational, bool)
OptionQueryableBase.TryGetOption(Option, out PixelFormat, bool)
OptionQueryableBase.TryGetOption(Option, out SampleFormat, bool)
OptionQueryableBase.TryGetOption(Option, out IDictionary<string, string>, bool)
OptionQueryableBase.TryGetOption(Option, out Dictionary<string, string>, bool)
OptionQueryableBase.TryGetOption(Option, out AVDictionary, bool)
OptionQueryableBase.TryGetOption(Option, out ILookup<string, string>, bool)
OptionQueryableBase.TryGetOption(Option, out AVMultiDictionary, bool)
OptionQueryableBase.TryGetOption(Option, out int, out int, bool)
OptionQueryableBase.TryGetOption(Option, out (int Width, int Height), bool)
OptionQueryableBase.TryGetOption(Option, out byte[], bool)
OptionQueryableBase.TryGetOption(Option, out Memory<byte>, bool)
OptionQueryableBase.TryGetOption(Option, out ReadOnlyMemory<byte>, bool)
OptionQueryableBase.TryGetOption(Option, Span<byte>, bool)
OptionQueryableBase.TryGetOption(Option, out object, bool)
OptionQueryableBase.SetOption(string, ChannelLayout, bool)
OptionQueryableBase.SetOption(Option, ChannelLayout, bool)
OptionQueryableBase.TryGetOption(string, out ChannelLayout, bool)
OptionQueryableBase.TryGetOption(Option, out ChannelLayout, bool)
object.GetType()
object.MemberwiseClone()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: FFmpeg.Filters.AudioFilters
Assembly: FFmpeg.dll
Syntax
public class AudioBufferSink : FilterContext, IOptionQueryable, ILoggingContext, IAVPointer<_AVFilterContext>, IBufferSource, IBufferSink
Remarks

An AudioBufferSink is the exit point for audio frames from a filter graph. Frames can be retrieved using ReceiveFrame(AVFrame) after the filter graph has been configured and initialized.

Properties

View Source

Channels

Gets the number of channels in audio frames produced by the buffer sink filter.

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

The number of audio channels in the frames received from the sink.

View Source

SampleFormat

Gets the sample format of audio frames produced by the buffer sink filter.

Declaration
public SampleFormat SampleFormat { get; }
Property Value
Type Description
SampleFormat

The sample format of the frames received from the sink.

View Source

SampleRate

Gets the sample rate of audio frames produced by the buffer sink filter.

Declaration
public int SampleRate { get; }
Property Value
Type Description
int

The sample rate of the frames received from the sink, in samples per second.

View Source

TimeBase

Gets the time base of frames produced by the audio buffer sink filter.

Declaration
public Rational TimeBase { get; }
Property Value
Type Description
Rational

The time base used for timestamps of frames received from the sink.

Methods

View Source

Allocate(string, FilterGraph)

Allocates an uninitialized audio buffer sink filter.

Declaration
public static AudioBufferSink Allocate(string name, FilterGraph graph)
Parameters
Type Name Description
string name

The name of the filter instance.

FilterGraph graph

The filter graph that will own the filter.

Returns
Type Description
AudioBufferSink

The allocated, uninitialized audio buffer sink filter.

Exceptions
Type Condition
FFmpegException

The filter could not be allocated.

View Source

Create(string, FilterGraph)

Creates and initializes an audio buffer sink filter.

Declaration
public static AudioBufferSink Create(string name, FilterGraph graph)
Parameters
Type Name Description
string name

The name of the filter instance.

FilterGraph graph

The filter graph that will own the filter.

Returns
Type Description
AudioBufferSink

The initialized audio buffer sink filter.

Exceptions
Type Condition
FFmpegException

The filter could not be allocated or initialized.

View Source

ReceiveFrame(AVFrame)

Receives the next available audio frame from the buffer sink filter.

Declaration
public AVResult32 ReceiveFrame(AVFrame frame)
Parameters
Type Name Description
AVFrame frame

The destination frame that receives the filtered audio data.

Returns
Type Description
AVResult32

The result returned by FFmpeg.

Remarks

The supplied frame is unreferenced before receiving the new frame. The frame's TimeBase is updated to the sink's time base and its BestEffortTimestamp is set to its presentation timestamp.

Exceptions
Type Condition
ArgumentNullException

frame is null.

View Source

TryGetChannelLayout(out ChannelLayout?)

Attempts to retrieve the channel layout of audio frames produced by the buffer sink filter.

Declaration
public bool TryGetChannelLayout(out ChannelLayout? layout)
Parameters
Type Name Description
ChannelLayout layout

When this method returns true, contains the channel layout; otherwise, null.

Returns
Type Description
bool

true if the channel layout was successfully retrieved; otherwise, false.

Implements

IOptionQueryable
ILoggingContext
IAVPointer<T>
IBufferSource
IBufferSink

Extension Methods

LoggingContextExtensions.Debug(ILoggingContext, string)
LoggingContextExtensions.Error(ILoggingContext, string)
LoggingContextExtensions.Fatal(ILoggingContext, string)
LoggingContextExtensions.Info(ILoggingContext, string)
LoggingContextExtensions.Log(ILoggingContext, LogLevel, string)
LoggingContextExtensions.Panic(ILoggingContext, string)
LoggingContextExtensions.Trace(ILoggingContext, string)
LoggingContextExtensions.Verbose(ILoggingContext, string)
LoggingContextExtensions.Warning(ILoggingContext, string)
  • View Source
In this article
Back to top Generated by DocFX