/*1* Copyright (C) 2010 Maarten Lankhorst for CodeWeavers2*3* This library is free software; you can redistribute it and/or4* modify it under the terms of the GNU Lesser General Public5* License as published by the Free Software Foundation; either6* version 2.1 of the License, or (at your option) any later version.7*8* This library is distributed in the hope that it will be useful,9* but WITHOUT ANY WARRANTY; without even the implied warranty of10* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU11* Lesser General Public License for more details.12*13* You should have received a copy of the GNU Lesser General Public14* License along with this library; if not, write to the Free Software15* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA16*/1718#ifndef __AMAUDIO__19#define __AMAUDIO__2021#include <mmsystem.h>22#include <dsound.h>2324#undef INTERFACE25#define INTERFACE IAMDirectSound2627DECLARE_INTERFACE_(IAMDirectSound,IUnknown)28{29/*** IUnknown methods ***/30STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;31STDMETHOD_(ULONG,AddRef)(THIS) PURE;32STDMETHOD_(ULONG,Release)(THIS) PURE;3334/*** IAMDirectSound methods ***/35STDMETHOD(GetDirectSoundInterface)(THIS_ IDirectSound **ds) PURE;36STDMETHOD(GetPrimaryBufferInterface)(THIS_ IDirectSoundBuffer **buf) PURE;37STDMETHOD(GetSecondaryBufferInterface)(THIS_ IDirectSoundBuffer **buf) PURE;38STDMETHOD(ReleaseDirectSoundInterface)(THIS_ IDirectSound *ds) PURE;39STDMETHOD(ReleasePrimaryBufferInterface)(THIS_ IDirectSoundBuffer *buf) PURE;40STDMETHOD(ReleaseSecondaryBufferInterface)(THIS_ IDirectSoundBuffer *buf) PURE;41STDMETHOD(SetFocusWindow)(THIS_ HWND hwnd, BOOL bgaudible) PURE;42STDMETHOD(GetFocusWindow)(THIS_ HWND *hwnd, BOOL *bgaudible) PURE;43};44#undef INTERFACE4546#endif474849