Definitions.pas
上传用户:hylc_2004
上传日期:2014-01-23
资源大小:46800k
文件大小:2k
源码类别:

Delphi控件源码

开发平台:

Delphi

  1. unit Definitions;
  2. interface
  3. uses
  4.   Classes, ActiveX;
  5. const
  6.   FilterID = 'AsyncEx';
  7.   PinID = 'StreamOut';
  8.   // GUIDS
  9.   CLSID_AsyncEx: TGUID = '{3E0FA044-926C-42d9-BA12-EF16E980913B}';
  10.   // Interface ID'S
  11.   IID_IAsyncExControl: TGUID = '{3E0FA056-926C-43d9-BA18-EF16E980913B}';
  12.   IID_IAsyncExCallBack: TGUID = '{3E0FB667-956C-43d9-BA18-EF16E980913B}';
  13.   // Mpeg1 splitter
  14.   CLSID_Mpeg1Split: TGUID = '{336475D0-942A-11CE-A870-00AA002FEAB5}';
  15. type
  16.   IAsyncExCallBack = interface(IUnknown)
  17.     ['{3E0FB667-956C-43d9-BA18-EF16E980913B}']
  18.     function AsyncExFilterState(Buffering: LongBool; PreBuffering: LongBool;
  19.       Connecting: LongBool; Playing: LongBool;
  20.       BufferState: integer): HRESULT; stdcall;
  21.     function AsyncExICYNotice(IcyItemName: PChar;
  22.       ICYItem: PChar): HRESULT; stdcall;
  23.     function AsyncExMetaData(Title: PChar; URL: PChar): HRESULT; stdcall;
  24.     function AsyncExSockError(ErrString: PChar): HRESULT; stdcall;
  25.   end;
  26. type
  27.   IAsyncExControl = interface(IUnknown)
  28.     ['{3E0FA056-926C-43d9-BA18-EF16E980913B}']
  29.     function SetLoadFromStream(Stream: IStream; Length: int64): HRESULT;
  30.       stdcall;
  31.     function SetConnectToIp(Host: PChar; Port: PChar; Location: PChar;
  32.       PreBuffersize: integer; MetaData: LongBool): HRESULT; stdcall;
  33.     function SetConnectToURL(URL: PChar; PreBuffersize: integer;
  34.       MetaData: LongBool): HRESULT; stdcall;
  35.     function SetBuffersize(BufferSize: integer): HRESULT; stdcall;
  36.     function GetBuffersize(out BufferSize: integer): HRESULT; stdcall;
  37.     function SetRipStream(Ripstream: LongBool; Path: PChar;
  38.       Filename: PChar): HRESULT; stdcall;
  39.     function GetRipStream(out Ripstream: LongBool;
  40.       out FileO: PChar): HRESULT; stdcall;
  41.     function SetCallBack(CallBack: IAsyncExCallBack): HRESULT; stdcall;
  42.     function FreeCallback(): HRESULT; stdcall;
  43.     function ExitAllLoops(): HRESULT; stdcall;
  44.   end;
  45. implementation
  46. end.