source: trunk/src/dsound/DSOUND.CPP@ 1418

Last change on this file since 1418 was 1411, checked in by sandervl, 26 years ago

compile fixes

File size: 2.2 KB
Line 
1/* $Id: DSOUND.CPP,v 1.4 1999-10-23 12:35:14 sandervl Exp $ */
2
3/*
4 * DirectSound exported APIs
5 *
6 * Copyright 1998 Sander van Leeuwen (sandervl@xs4all.nl)
7 *
8 * Project Odin Software License can be found in LICENSE.TXT
9 *
10 */
11
12/*@Const************************************************************************
13* Defined Constants *
14*******************************************************************************/
15#define WIN32SDK_NOPOSTWRAPPER
16
17/*@Header***********************************************************************
18* Header Files *
19*******************************************************************************/
20#include <os2win.h>
21#include <stdlib.h>
22#include <string.h>
23
24#include <dsound.h>
25//#include "os2dsound.h"
26
27#include <misc.h>
28
29//******************************************************************************
30//******************************************************************************
31HRESULT WIN32API OS2DirectSoundCreate(const GUID *lpGUID,
32 LPDIRECTSOUND * ppDS,
33 IUnknown *pUnkOuter)
34{
35 dprintf(("DirectSoundCreate %X %X %X\n", lpGUID, ppDS, pUnkOuter));
36#if 0
37 OS2IDirectSound *newsound = new OS2IDirectSound(lpGUID);
38 HRESULT rc;
39
40 if(newsound == NULL) return(DSERR_OUTOFMEMORY);
41
42 rc = newsound->GetLastError();
43 if(rc != DS_OK) {
44 *ppDS = NULL;
45 delete newsound;
46 }
47 else *ppDS = (LPDIRECTSOUND)newsound;
48 return(rc);
49#else
50 return(DSERR_NODRIVER);
51#endif
52}
53//******************************************************************************
54//******************************************************************************
55HRESULT WIN32API OS2DirectSoundEnumerateA(LPDSENUMCALLBACKA lpCallback,
56 LPVOID lpContext)
57{
58 dprintf(("DirectSoundEnumerateA\n"));
59
60 lpCallback(NULL, "DART DirectSound for OS/2", "DirectSound/2 v0.1",
61 lpContext);
62 return(DS_OK);
63}
64//******************************************************************************
65//******************************************************************************
Note: See TracBrowser for help on using the repository browser.