/* $Id: DSOUND.CPP,v 1.5 1999-10-23 23:00:49 sandervl Exp $ */ /* * DirectSound exported APIs * * Copyright 1998 Sander van Leeuwen (sandervl@xs4all.nl) * * Project Odin Software License can be found in LICENSE.TXT * */ /*@Header*********************************************************************** * Header Files * *******************************************************************************/ #include #include #include #define INITGUID #include #include "os2dsound.h" #include //****************************************************************************** //****************************************************************************** HRESULT WIN32API OS2DirectSoundCreate(const GUID *lpGUID, LPDIRECTSOUND * ppDS, IUnknown *pUnkOuter) { OS2IDirectSound *newsound = new OS2IDirectSound(lpGUID); HRESULT rc; dprintf(("DirectSoundCreate %X %X %X\n", lpGUID, ppDS, pUnkOuter)); if(newsound == NULL) return(DSERR_OUTOFMEMORY); rc = newsound->GetLastError(); if(rc != DS_OK) { *ppDS = NULL; delete newsound; } else *ppDS = (LPDIRECTSOUND)newsound; return(rc); } //****************************************************************************** //****************************************************************************** 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); } //****************************************************************************** //******************************************************************************