source: trunk/src/winmm/playsound.cpp@ 3473

Last change on this file since 3473 was 3473, checked in by bird, 25 years ago

Dirty odinwrap.h/QueryPerformanceCounter fix.

File size: 3.6 KB
Line 
1/* $Id: playsound.cpp,v 1.6 2000-05-02 13:29:59 bird Exp $ */
2
3/*
4 * Playsound stubs
5 *
6 * Copyright 1998 Joel Troster
7 *
8 *
9 * Project Odin Software License can be found in LICENSE.TXT
10 *
11 */
12
13
14/****************************************************************************
15 * Includes *
16 ****************************************************************************/
17
18#define INCL_BASE
19#define INCL_OS2MM
20#include <os2wrap.h> //Odin32 OS/2 api wrappers
21#include <odinwrap.h>
22#include <win32type.h>
23#include <winconst.h>
24#include <misc.h>
25
26#define DBG_LOCALLOG DBG_playsound
27#include "dbglocal.h"
28
29//kso: dirty fix to make this compile! not permanent!
30BOOL WINAPI QueryPerformanceCounter(LARGE_INTEGER *);
31#define LowPart u.LowPart
32
33
34ODINDEBUGCHANNEL(WINMM-PLAYSOUND)
35
36
37/*****************************************************************************
38 * Plays a sound specified by the given filename, resource, or
39 * system event.
40 * Parameters: LPCSTR pszSound
41 * HMODULE hMod
42 * DWORD fdwSound
43 * Variables :
44 * Result :
45 * Remark :
46 * Status :
47 *
48 * Author : Patrick Haller [Tue, 1998/05/05 10:44]
49 *****************************************************************************/
50
51ODINFUNCTION3(BOOL, PlaySoundA,
52 LPCSTR, pszSound,
53 HMODULE, hmod,
54 DWORD, fdwSound)
55{
56 dprintf(("WINMM:PlaySoundA not implemented\n"));
57 if((fdwSound & (SND_SYNC_W|SND_ASYNC_W)) == (SND_SYNC_W|SND_ASYNC_W)) {
58// SetLastError(ERROR_INVALID_PARAMETER_W);
59 return FALSE;
60 }
61// if(fdwSound & (SND_MEMORY_W|SND_ALIAS_W|SND_FILENAME_W|SND_RESOURCE_W) == (SND_SYNC_W|SND_ASYNC_W)) {
62// SetLastError(ERROR_INVALID_PARAMETER_W);
63// return FALSE;
64// }
65 return(FALSE);
66}
67
68
69/*****************************************************************************
70 * Plays a sound specified by the given filename, resource, or
71 * system event.
72 * Parameters: LPCSTR pszSound
73 * HMODULE hMod
74 * DWORD fdwSound
75 * Variables :
76 * Result :
77 * Remark :
78 * Status :
79 *
80 * Author : Patrick Haller [Tue, 1998/05/05 10:44]
81 *****************************************************************************/
82
83ODINFUNCTION3(BOOL, PlaySoundW,
84 LPCWSTR, pszSound,
85 HMODULE, hmod,
86 DWORD, fdwSound)
87{
88 dprintf(("WINMM:PlaySoundW not implemented\n"));
89 return(FALSE);
90}
91
92
93/*****************************************************************************
94 * Plays a sound specified by the given filename
95 * Parameters: LPCSTR pszSound
96 * UINT fuSound
97 * Variables :
98 * Result :
99 * Remark :
100 * Status :
101 *
102 * Author : Patrick Haller [Tue, 1998/05/05 10:44]
103 *****************************************************************************/
104
105ODINFUNCTION2(BOOL, sndPlaySoundA,
106 LPCSTR, pszSound,
107 UINT, fuSound)
108{
109 dprintf(("WINMM:sndPlaySoundA not implemented\n"));
110 return(FALSE);
111}
112
113
114/*****************************************************************************
115 * Plays a sound specified by the given filename
116 * Parameters: LPCWSTR pszSound
117 * HMODULE hMod
118 * DWORD fdwSound
119 * Variables :
120 * Result :
121 * Remark :
122 * Status :
123 *
124 * Author : Patrick Haller [Tue, 1998/05/05 10:44]
125 *****************************************************************************/
126
127ODINFUNCTION2(BOOL, sndPlaySoundW,
128 LPCWSTR, pszSound,
129 UINT, fuSound)
130{
131 dprintf(("WINMM:sndPlaySoundW not implemented\n"));
132 return(FALSE);
133}
134
Note: See TracBrowser for help on using the repository browser.