Click or drag to resize

AudioHandlerOnAudioStreamPacket Method

Version 111.2.70
Called on the audio stream thread when a PCM packet is received for the stream. Based on and the ChannelLayout value passed to OnAudioStreamStarted(IWebBrowser, IBrowser, AudioParameters, Int32) you can calculate the size of the data array in bytes.

Namespace:  CefSharp.Handler
Assembly:  CefSharp (in CefSharp.dll) Version: 111.2.70.0 (111.2.70.0)
Syntax
protected virtual void OnAudioStreamPacket(
	IWebBrowser chromiumWebBrowser,
	IBrowser browser,
	IntPtr data,
	int noOfFrames,
	long pts
)

Parameters

chromiumWebBrowser
Type: CefSharpIWebBrowser
browser
Type: CefSharpIBrowser
the browser object
data
Type: SystemIntPtr
is an array representing the raw PCM data as a floating point type, i.e. 4-byte value(s).
noOfFrames
Type: SystemInt32
is the number of frames in the PCM packet
pts
Type: SystemInt64
is the presentation timestamp (in milliseconds since the Unix Epoch) and represents the time at which the decompressed packet should be presented to the user
See Also