点击或拖拽改变大小

MediaPlayerLibVLCAudioPlayCb 委托

Callback prototype for audio playback.

命名空间:  LibVLCSharp.Shared
程序集:  CPF.Vlc (在 CPF.Vlc.dll 中) 版本:0.8.8.5
语法
C#
public delegate void LibVLCAudioPlayCb(
	IntPtr data,
	IntPtr samples,
	uint count,
	long pts
)

参数

data
类型:SystemIntPtr
data pointer as passed to libvlc_audio_set_callbacks() [IN]
samples
类型:SystemIntPtr
pointer to a table of audio samples to play back [IN]
count
类型:SystemUInt32
number of audio samples to play back
pts
类型:SystemInt64
expected play time stamp (see libvlc_delay())
备注

The LibVLC media player decodes and post-processes the audio signal

asynchronously (in an internal thread). Whenever audio samples are ready

to be queued to the output, this callback is invoked.

The number of samples provided per invocation may depend on the file format,

the audio coding algorithm, the decoder plug-in, the post-processing

filters and timing. Application must not assume a certain number of samples.

The exact format of audio samples is determined by libvlc_audio_set_format()

or libvlc_audio_set_format_callbacks() as is the channels layout.

Note that the number of samples is per channel. For instance, if the audio

track sampling rate is 48000 Hz, then 1200 samples represent 25 milliseconds

of audio signal - regardless of the number of audio channels.

参见