Amaudio.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:2k
源码类别:

模拟服务器

开发平台:

C/C++

  1. //------------------------------------------------------------------------------
  2. // File: AMAudio.h
  3. //
  4. // Desc: Audio related definitions and interfaces for ActiveMovie.
  5. //
  6. // Copyright (c) 1992 - 2000, Microsoft Corporation.  All rights reserved.
  7. //------------------------------------------------------------------------------
  8. #ifndef __AMAUDIO__
  9. #define __AMAUDIO__
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif // __cplusplus
  13. #include <mmsystem.h>
  14. #include <dsound.h>
  15. // This is the interface the audio renderer supports to give the application
  16. // access to the direct sound object and buffers it is using, to allow the
  17. // application to use things like the 3D features of Direct Sound for the
  18. // soundtrack of a movie being played with Active Movie
  19. // be nice to our friends in C
  20. #undef INTERFACE
  21. #define INTERFACE IAMDirectSound
  22. DECLARE_INTERFACE_(IAMDirectSound,IUnknown)
  23. {
  24.     /* IUnknown methods */
  25.     STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID *ppvObj) PURE;
  26.     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  27.     STDMETHOD_(ULONG,Release)(THIS) PURE;
  28.     /* IAMDirectSound methods */
  29.     STDMETHOD(GetDirectSoundInterface)(THIS_ LPDIRECTSOUND *lplpds) PURE;
  30.     STDMETHOD(GetPrimaryBufferInterface)(THIS_ LPDIRECTSOUNDBUFFER *lplpdsb) PURE;
  31.     STDMETHOD(GetSecondaryBufferInterface)(THIS_ LPDIRECTSOUNDBUFFER *lplpdsb) PURE;
  32.     STDMETHOD(ReleaseDirectSoundInterface)(THIS_ LPDIRECTSOUND lpds) PURE;
  33.     STDMETHOD(ReleasePrimaryBufferInterface)(THIS_ LPDIRECTSOUNDBUFFER lpdsb) PURE;
  34.     STDMETHOD(ReleaseSecondaryBufferInterface)(THIS_ LPDIRECTSOUNDBUFFER lpdsb) PURE;
  35.     STDMETHOD(SetFocusWindow)(THIS_ HWND, BOOL) PURE ;
  36.     STDMETHOD(GetFocusWindow)(THIS_ HWND *, BOOL*) PURE ;
  37. };
  38. #ifdef __cplusplus
  39. }
  40. #endif // __cplusplus
  41. #endif // __AMAUDIO__