/// <summary> /// Called on a browser audio capture thread when the browser starts streaming /// audio. /// </summary> /// <param name="browser">The browser.</param> /// <param name="params"> /// Contains the audio parameters like sample rate and channel layout. /// </param> /// <param name="channels">The number of channels.</param> /// <remarks> /// OnAudioStreamStopped will always be called after OnAudioStreamStarted; /// both functions may be called multiple times for the same browser. /// </remarks> internal protected virtual void OnAudioStreamStarted(CefBrowser browser, CefAudioParameters @params, int channels) { }
protected internal unsafe override void OnAudioStreamStarted(CefBrowser browser, CefAudioParameters @params, int channels) { _implementation.OnAudioStreamStarted(browser, @params, channels); }
/// <summary> /// Called on the UI thread to allow configuration of audio stream parameters. /// </summary> /// <param name="browser">The browser.</param> /// <param name="params"> /// All members of <paramref name="params"/> can optionally be configured here, but /// they are also pre-filled with some sensible defaults. /// </param> /// <returns>Return true to proceed with audio stream capture, or false to cancel it. </returns> internal protected virtual bool GetAudioParameters(CefBrowser browser, ref CefAudioParameters @params) { return(false); }
protected internal unsafe override bool GetAudioParameters(CefBrowser browser, ref CefAudioParameters @params) { return(_implementation.GetAudioParameters(browser, ref @params)); }