Files
common/CEF4Delphi/win32/hpps/uCEFAudioHandler.hpp
T
2026-06-12 23:18:12 +08:00

105 lines
4.2 KiB
C++

// CodeGear C++Builder
// Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
// All rights reserved
// (DO NOT EDIT: machine generated header) 'uCEFAudioHandler.pas' rev: 37.00 (Windows)
#ifndef uCEFAudioHandlerHPP
#define uCEFAudioHandlerHPP
#pragma delphiheader begin
#pragma option push
#if defined(__BORLANDC__) && !defined(__clang__)
#pragma option -w- // All warnings off
#pragma option -Vx // Zero-length empty class member
#endif
#pragma pack(push,8)
#include <System.hpp>
#include <SysInit.hpp>
#include <uCEFBaseRefCounted.hpp>
#include <uCEFInterfaces.hpp>
#include <uCEFTypes.hpp>
//-- user supplied -----------------------------------------------------------
namespace Ucefaudiohandler
{
//-- forward type declarations -----------------------------------------------
class DELPHICLASS TCefAudioHandlerOwn;
class DELPHICLASS TCustomAudioHandler;
//-- type declarations -------------------------------------------------------
#pragma pack(push,4)
class PASCALIMPLEMENTATION TCefAudioHandlerOwn : public Ucefbaserefcounted::TCefBaseRefCountedOwn
{
typedef Ucefbaserefcounted::TCefBaseRefCountedOwn inherited;
protected:
virtual void __fastcall OnGetAudioParameters(const Ucefinterfaces::_di_ICefBrowser browser, Uceftypes::TCefAudioParameters &params, bool &aResult);
virtual void __fastcall OnAudioStreamStarted(const Ucefinterfaces::_di_ICefBrowser browser, const Uceftypes::TCefAudioParameters &params, int channels);
virtual void __fastcall OnAudioStreamPacket(const Ucefinterfaces::_di_ICefBrowser browser, const Uceftypes::PPSingle data, int frames, __int64 pts);
virtual void __fastcall OnAudioStreamStopped(const Ucefinterfaces::_di_ICefBrowser browser);
virtual void __fastcall OnAudioStreamError(const Ucefinterfaces::_di_ICefBrowser browser, const Uceftypes::ustring message_);
virtual void __fastcall RemoveReferences();
public:
__fastcall virtual TCefAudioHandlerOwn();
public:
/* TCefBaseRefCountedOwn.CreateData */ inline __fastcall virtual TCefAudioHandlerOwn(unsigned size, bool owned) : Ucefbaserefcounted::TCefBaseRefCountedOwn(size, owned) { }
/* TCefBaseRefCountedOwn.Destroy */ inline __fastcall virtual ~TCefAudioHandlerOwn() { }
private:
void *__ICefAudioHandler; // Ucefinterfaces::ICefAudioHandler
public:
#if defined(MANAGED_INTERFACE_OPERATORS)
// {8963271A-0B94-4279-82C8-FB2EA7B3CDEC}
operator Ucefinterfaces::_di_ICefAudioHandler()
{
Ucefinterfaces::_di_ICefAudioHandler intf;
this->GetInterface(intf);
return intf;
}
#else
operator Ucefinterfaces::ICefAudioHandler*(void) { return (Ucefinterfaces::ICefAudioHandler*)&__ICefAudioHandler; }
#endif
};
#pragma pack(pop)
#pragma pack(push,4)
class PASCALIMPLEMENTATION TCustomAudioHandler : public TCefAudioHandlerOwn
{
typedef TCefAudioHandlerOwn inherited;
protected:
void *FEvents;
virtual void __fastcall OnGetAudioParameters(const Ucefinterfaces::_di_ICefBrowser browser, Uceftypes::TCefAudioParameters &params, bool &aResult);
virtual void __fastcall OnAudioStreamStarted(const Ucefinterfaces::_di_ICefBrowser browser, const Uceftypes::TCefAudioParameters &params, int channels);
virtual void __fastcall OnAudioStreamPacket(const Ucefinterfaces::_di_ICefBrowser browser, const Uceftypes::PPSingle data, int frames, __int64 pts);
virtual void __fastcall OnAudioStreamStopped(const Ucefinterfaces::_di_ICefBrowser browser);
virtual void __fastcall OnAudioStreamError(const Ucefinterfaces::_di_ICefBrowser browser, const Uceftypes::ustring message_);
virtual void __fastcall RemoveReferences();
public:
__fastcall virtual TCustomAudioHandler(const Ucefinterfaces::_di_IChromiumEvents events);
__fastcall virtual ~TCustomAudioHandler();
public:
/* TCefBaseRefCountedOwn.CreateData */ inline __fastcall virtual TCustomAudioHandler(unsigned size, bool owned) : TCefAudioHandlerOwn(size, owned) { }
};
#pragma pack(pop)
//-- var, const, procedure ---------------------------------------------------
} /* namespace Ucefaudiohandler */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UCEFAUDIOHANDLER)
using namespace Ucefaudiohandler;
#endif
#pragma pack(pop)
#pragma option pop
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // uCEFAudioHandlerHPP