C# Класс Unosquare.FFmpegMediaElement.FFmpegMedia.AudioBufferProvider

Provides audio data samples in PCM, 16-bit format. This class is used to keep track of the samples and matching frames times It also ensures samples are not repeated and are unique in a discrete timeline
Показать файл Открыть проект

Открытые методы

Метод Описание
AudioBufferProvider ( FFmpegMedia media ) : System.Collections.Generic

Initializes a new instance of the AudioBufferProvider class.

Clear ( ) : void

Clears the buffer and frame times

ProvideNext ( byte bufferToFill ) : int

Provides the next small buffer that the audio device requests. the buffer to fill is a non-null reference to the buffer that needs to be filled The return value represents how many bytes were written to buffer.

Описание методов

AudioBufferProvider() публичный Метод

Initializes a new instance of the AudioBufferProvider class.
public AudioBufferProvider ( FFmpegMedia media ) : System.Collections.Generic
media FFmpegMedia The media.
Результат System.Collections.Generic

Clear() публичный Метод

Clears the buffer and frame times
public Clear ( ) : void
Результат void

ProvideNext() публичный Метод

Provides the next small buffer that the audio device requests. the buffer to fill is a non-null reference to the buffer that needs to be filled The return value represents how many bytes were written to buffer.
public ProvideNext ( byte bufferToFill ) : int
bufferToFill byte
Результат int