Click or drag to resize

IAudioHandlerOnAudioStreamPacket Method

Version 94.4.20
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
Assembly:  CefSharp (in CefSharp.dll) Version: 94.4.20.0 (94.4.20.0)
Syntax
void OnAudioStreamPacket(
	IWebBrowser chromiumWebBrowser,
	IBrowser browser,
	IntPtr data,
	int noOfFrames,
	long pts
)

Parameters

chromiumWebBrowser
Type: CefSharpIWebBrowser
browser
Type: CefSharpIBrowser

[Missing <param name="browser"/> documentation for "M:CefSharp.IAudioHandler.OnAudioStreamPacket(CefSharp.IWebBrowser,CefSharp.IBrowser,System.IntPtr,System.Int32,System.Int64)"]

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