Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.8 KiB

  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__