Ignore:
Timestamp:
Oct 24, 1999, 1:01:19 AM (26 years ago)
Author:
sandervl
Message:

Fixed compilation for all files

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 phaller Exp $ */
     1/* $Id: OS2DSOUND.CPP,v 1.4 1999-10-23 23:00:49 sandervl Exp $ */
    22
    33/*
     
    1010 */
    1111
    12 /*@Const************************************************************************
    13 *   Defined Constants                                                          *
    14 *******************************************************************************/
    15 #define INITGUID
    16 #define INCL_DIRECTSOUND_GUID
    17 #define WIN32SDK_NOPOSTWRAPPER
    18 
    19 
    2012/*@Header***********************************************************************
    2113*   Header Files                                                               *
     
    2517#include <string.h>
    2618
    27 #include "no.h" /* NO* defines for windows.h */
    28 #include <w_windows.h>
     19#define INITGUID
    2920#include <dsound.h>
    30 #include <Win32SDKPostWrapper.h>
    3121
    3222#include "os2dsound.h"
    3323#include "os2sndbuffer.h"
    3424#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  INTERFACE
    40 #define INTERFACE   IDirectSound
    41 
    4225
    4326//******************************************************************************
     
    7154//******************************************************************************
    7255//******************************************************************************
    73 HRESULT WIN32API SoundQueryInterface(THIS, REFIID riid, LPVOID FAR * ppvObj)
     56HRESULT WIN32API SoundQueryInterface(THIS, REFIID riid, LPVOID * ppvObj)
    7457{
    7558  dprintf(("OS2IDirectSound::QueryInterface\n"));
     
    123106//******************************************************************************
    124107//******************************************************************************
    125 #if 0 //KSO Apr 13 1999: some parameter incompabilities between newer and older SDKs.
    126108HRESULT 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
    133110                    LPDIRECTSOUNDBUFFER *lplpDirectSoundBuffer,
    134111                    LPUNKNOWN pUnkOuter)
    135 #endif
    136112{
    137113 OS2IDirectSound *me = (OS2IDirectSound *)This;
     
    170146//******************************************************************************
    171147//******************************************************************************
    172 HRESULT WIN32API SoundSetCooperativeLevel(THIS_ W32_HWND hwndClient, DWORD level)
     148HRESULT WIN32API SoundSetCooperativeLevel(THIS_ HWND hwndClient, DWORD level)
    173149{
    174150 OS2IDirectSound *me = (OS2IDirectSound *)This;
     
    211187//******************************************************************************
    212188//******************************************************************************
    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
     189HRESULT WIN32API SoundInitialize(THIS_ LPGUID)
    218190{
    219191  dprintf(("OS2IDirectSound::Initialize UNSUPPORTED\n"));
Note: See TracChangeset for help on using the changeset viewer.