C# Class 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
ファイルを表示 Open project: bbougot/Popcorn

Public Methods

Method Description
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.

Method Details

AudioBufferProvider() public method

Initializes a new instance of the AudioBufferProvider class.
public AudioBufferProvider ( FFmpegMedia media ) : System.Collections.Generic
media FFmpegMedia The media.
return System.Collections.Generic

Clear() public method

Clears the buffer and frame times
public Clear ( ) : void
return void

ProvideNext() public method

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
return int