Click or drag to resize

AudioHandler.OnAudioStreamPacket Method

Version 108.4.130
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: 108.4.130.0 (108.4.130.0)
Syntax
protected virtual void OnAudioStreamPacket(
	IWebBrowser chromiumWebBrowser,
	IBrowser browser,
	IntPtr data,
	int noOfFrames,
	long pts
)

Parameters

chromiumWebBrowser
Type: CefSharp.IWebBrowser
browser
Type: CefSharp.IBrowser
the browser object
data
Type: System.IntPtr
is an array representing the raw PCM data as a floating point type, i.e. 4-byte value(s).
noOfFrames
Type: System.Int32
is the number of frames in the PCM packet
pts
Type: System.Int64
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