61 lines
2 KiB
C
61 lines
2 KiB
C
//==========================================================================;
|
|
//
|
|
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
|
|
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
|
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
|
|
// PURPOSE.
|
|
//
|
|
// Copyright (c) 1992 - 1997 Microsoft Corporation. All Rights Reserved.
|
|
//
|
|
//--------------------------------------------------------------------------;
|
|
|
|
// Audio related definitions and interfaces for ActiveMovie
|
|
|
|
#ifndef __AMAUDIO__
|
|
#pragma option push -b -a8 -pc -A- /*P_O_Push*/
|
|
#define __AMAUDIO__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif // __cplusplus
|
|
|
|
#include <mmsystem.h>
|
|
#include <dsound.h>
|
|
|
|
// This is the interface the audio renderer supports to give the application
|
|
// access to the direct sound object and buffers it is using, to allow the
|
|
// application to use things like the 3D features of Direct Sound for the
|
|
// soundtrack of a movie being played with Active Movie
|
|
|
|
// be nice to our friends in C
|
|
#undef INTERFACE
|
|
#define INTERFACE IAMDirectSound
|
|
|
|
DECLARE_INTERFACE_(IAMDirectSound,IUnknown)
|
|
{
|
|
/* IUnknown methods */
|
|
|
|
STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID *ppvObj) PURE;
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
|
|
|
/* IAMDirectSound methods */
|
|
|
|
STDMETHOD(GetDirectSoundInterface)(THIS_ LPDIRECTSOUND *lplpds) PURE;
|
|
STDMETHOD(GetPrimaryBufferInterface)(THIS_ LPDIRECTSOUNDBUFFER *lplpdsb) PURE;
|
|
STDMETHOD(GetSecondaryBufferInterface)(THIS_ LPDIRECTSOUNDBUFFER *lplpdsb) PURE;
|
|
STDMETHOD(ReleaseDirectSoundInterface)(THIS_ LPDIRECTSOUND lpds) PURE;
|
|
STDMETHOD(ReleasePrimaryBufferInterface)(THIS_ LPDIRECTSOUNDBUFFER lpdsb) PURE;
|
|
STDMETHOD(ReleaseSecondaryBufferInterface)(THIS_ LPDIRECTSOUNDBUFFER lpdsb) PURE;
|
|
STDMETHOD(SetFocusWindow)(THIS_ HWND, BOOL) PURE ;
|
|
STDMETHOD(GetFocusWindow)(THIS_ HWND *, BOOL*) PURE ;
|
|
};
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif // __cplusplus
|
|
#pragma option pop /*P_O_Pop*/
|
|
#endif // __AMAUDIO__
|
|
|