/* $Id: DSOUND.CPP,v 1.3 1999-06-10 17:09:29 phaller Exp $ */ /* * DirectSound exported APIs * * Copyright 1998 Sander van Leeuwen (sandervl@xs4all.nl) * * Project Odin Software License can be found in LICENSE.TXT * */ /*@Const************************************************************************ * Defined Constants * *******************************************************************************/ #define WIN32SDK_NOPOSTWRAPPER /*@Header*********************************************************************** * Header Files * *******************************************************************************/ #include #include #include #include "no.h" #include #include #include "os2dsound.h" #include #include "misc.h" //****************************************************************************** //****************************************************************************** HRESULT WIN32API OS2DirectSoundCreate(const GUID *lpGUID, LPDIRECTSOUND * ppDS, IUnknown FAR *pUnkOuter) { OS2IDirectSound *newsound = new OS2IDirectSound(lpGUID); HRESULT rc; dprintf(("DirectSoundCreate %X %X %X\n", lpGUID, ppDS, pUnkOuter)); #if 0 if(newsound == NULL) return(DSERR_OUTOFMEMORY); rc = newsound->GetLastError(); if(rc != DS_OK) { *ppDS = NULL; delete newsound; } else *ppDS = (LPDIRECTSOUND)newsound; return(rc); #else return(DSERR_NODRIVER); #endif } //****************************************************************************** //****************************************************************************** HRESULT WIN32API OS2DirectSoundEnumerateA(LPDSENUMCALLBACKA lpCallback, LPVOID lpContext) { dprintf(("DirectSoundEnumerateA\n")); lpCallback(NULL, "DART DirectSound for OS/2", "DirectSound/2 v0.1", lpContext); return(DS_OK); } //****************************************************************************** //******************************************************************************