Changeset 1421 for trunk/src/dsound/OS2DSOUND.CPP
- Timestamp:
- Oct 24, 1999, 1:01:19 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/dsound/OS2DSOUND.CPP
r97 r1421 1 /* $Id: OS2DSOUND.CPP,v 1. 3 1999-06-10 17:09:29 phallerExp $ */1 /* $Id: OS2DSOUND.CPP,v 1.4 1999-10-23 23:00:49 sandervl Exp $ */ 2 2 3 3 /* … … 10 10 */ 11 11 12 /*@Const************************************************************************13 * Defined Constants *14 *******************************************************************************/15 #define INITGUID16 #define INCL_DIRECTSOUND_GUID17 #define WIN32SDK_NOPOSTWRAPPER18 19 20 12 /*@Header*********************************************************************** 21 13 * Header Files * … … 25 17 #include <string.h> 26 18 27 #include "no.h" /* NO* defines for windows.h */ 28 #include <w_windows.h> 19 #define INITGUID 29 20 #include <dsound.h> 30 #include <Win32SDKPostWrapper.h>31 21 32 22 #include "os2dsound.h" 33 23 #include "os2sndbuffer.h" 34 24 #include "misc.h" 35 36 37 /* KSO Apr 19 1999: INTERFACE set again, since os2sndbuffer changed it. *38 * (INTERFACE is used in the THIS and THIS_ macros) */39 #undef INTERFACE40 #define INTERFACE IDirectSound41 42 25 43 26 //****************************************************************************** … … 71 54 //****************************************************************************** 72 55 //****************************************************************************** 73 HRESULT WIN32API SoundQueryInterface(THIS, REFIID riid, LPVOID FAR* ppvObj)56 HRESULT WIN32API SoundQueryInterface(THIS, REFIID riid, LPVOID * ppvObj) 74 57 { 75 58 dprintf(("OS2IDirectSound::QueryInterface\n")); … … 123 106 //****************************************************************************** 124 107 //****************************************************************************** 125 #if 0 //KSO Apr 13 1999: some parameter incompabilities between newer and older SDKs.126 108 HRESULT WIN32API SoundCreateSoundBuffer(THIS_ 127 LPDSBUFFERDESC lpDSBufferDesc, //old, non const 128 LPLPDIRECTSOUNDBUFFER lplpDirectSoundBuffer, 129 IUnknown FAR *pUnkOuter) 130 #else 131 HRESULT WIN32API SoundCreateSoundBuffer(THIS_ 132 LPCDSBUFFERDESC lpDSBufferDesc, //new, const 109 LPDSBUFFERDESC lpDSBufferDesc, //new, const 133 110 LPDIRECTSOUNDBUFFER *lplpDirectSoundBuffer, 134 111 LPUNKNOWN pUnkOuter) 135 #endif136 112 { 137 113 OS2IDirectSound *me = (OS2IDirectSound *)This; … … 170 146 //****************************************************************************** 171 147 //****************************************************************************** 172 HRESULT WIN32API SoundSetCooperativeLevel(THIS_ W32_HWND hwndClient, DWORD level)148 HRESULT WIN32API SoundSetCooperativeLevel(THIS_ HWND hwndClient, DWORD level) 173 149 { 174 150 OS2IDirectSound *me = (OS2IDirectSound *)This; … … 211 187 //****************************************************************************** 212 188 //****************************************************************************** 213 #if 0 //KSO Apr 13 1999: parameter declaration has changed in later SDKs 214 HRESULT WIN32API SoundInitialize(THIS_ const GUID * ) 215 #else 216 HRESULT WIN32API SoundInitialize(THIS_ LPGUID) 217 #endif 189 HRESULT WIN32API SoundInitialize(THIS_ LPGUID) 218 190 { 219 191 dprintf(("OS2IDirectSound::Initialize UNSUPPORTED\n"));
Note:
See TracChangeset
for help on using the changeset viewer.