/[cvs]/api/include/amaudio.h
ViewVC logotype

Annotation of /api/include/amaudio.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Sun Jul 1 20:47:59 2001 UTC (23 years, 5 months ago) by bearsoft
Branch point for: lazy, MAIN
File MIME type: text/plain
Initial revision

1 bearsoft 1.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    
9    
10     #ifndef __AMAUDIO__
11     #define __AMAUDIO__
12    
13     #ifdef __cplusplus
14     extern "C" {
15     #endif // __cplusplus
16    
17     #include <mmsystem.h>
18     #include <dsound.h>
19    
20     // This is the interface the audio renderer supports to give the application
21     // access to the direct sound object and buffers it is using, to allow the
22     // application to use things like the 3D features of Direct Sound for the
23     // soundtrack of a movie being played with Active Movie
24    
25     // be nice to our friends in C
26     #undef INTERFACE
27     #define INTERFACE IAMDirectSound
28    
29     DECLARE_INTERFACE_(IAMDirectSound,IUnknown)
30     {
31     /* IUnknown methods */
32    
33     STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID *ppvObj) PURE;
34     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
35     STDMETHOD_(ULONG,Release)(THIS) PURE;
36    
37     /* IAMDirectSound methods */
38    
39     STDMETHOD(GetDirectSoundInterface)(THIS_ LPDIRECTSOUND *lplpds) PURE;
40     STDMETHOD(GetPrimaryBufferInterface)(THIS_ LPDIRECTSOUNDBUFFER *lplpdsb) PURE;
41     STDMETHOD(GetSecondaryBufferInterface)(THIS_ LPDIRECTSOUNDBUFFER *lplpdsb) PURE;
42     STDMETHOD(ReleaseDirectSoundInterface)(THIS_ LPDIRECTSOUND lpds) PURE;
43     STDMETHOD(ReleasePrimaryBufferInterface)(THIS_ LPDIRECTSOUNDBUFFER lpdsb) PURE;
44     STDMETHOD(ReleaseSecondaryBufferInterface)(THIS_ LPDIRECTSOUNDBUFFER lpdsb) PURE;
45     STDMETHOD(SetFocusWindow)(THIS_ HWND, BOOL) PURE ;
46     STDMETHOD(GetFocusWindow)(THIS_ HWND *, BOOL*) PURE ;
47     };
48    
49    
50     #ifdef __cplusplus
51     }
52     #endif // __cplusplus
53     #endif // __AMAUDIO__
54    

root@recompile.se
ViewVC Help
Powered by ViewVC 1.1.26