1 | /* $Id: playsound.cpp,v 1.5 2000-02-17 14:09:32 sandervl 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 | ODINDEBUGCHANNEL(WINMM-PLAYSOUND)
|
---|
30 |
|
---|
31 |
|
---|
32 | /*****************************************************************************
|
---|
33 | * Plays a sound specified by the given filename, resource, or
|
---|
34 | * system event.
|
---|
35 | * Parameters: LPCSTR pszSound
|
---|
36 | * HMODULE hMod
|
---|
37 | * DWORD fdwSound
|
---|
38 | * Variables :
|
---|
39 | * Result :
|
---|
40 | * Remark :
|
---|
41 | * Status :
|
---|
42 | *
|
---|
43 | * Author : Patrick Haller [Tue, 1998/05/05 10:44]
|
---|
44 | *****************************************************************************/
|
---|
45 |
|
---|
46 | ODINFUNCTION3(BOOL, PlaySoundA,
|
---|
47 | LPCSTR, pszSound,
|
---|
48 | HMODULE, hmod,
|
---|
49 | DWORD, fdwSound)
|
---|
50 | {
|
---|
51 | dprintf(("WINMM:PlaySoundA not implemented\n"));
|
---|
52 | if((fdwSound & (SND_SYNC_W|SND_ASYNC_W)) == (SND_SYNC_W|SND_ASYNC_W)) {
|
---|
53 | // SetLastError(ERROR_INVALID_PARAMETER_W);
|
---|
54 | return FALSE;
|
---|
55 | }
|
---|
56 | // if(fdwSound & (SND_MEMORY_W|SND_ALIAS_W|SND_FILENAME_W|SND_RESOURCE_W) == (SND_SYNC_W|SND_ASYNC_W)) {
|
---|
57 | // SetLastError(ERROR_INVALID_PARAMETER_W);
|
---|
58 | // return FALSE;
|
---|
59 | // }
|
---|
60 | return(FALSE);
|
---|
61 | }
|
---|
62 |
|
---|
63 |
|
---|
64 | /*****************************************************************************
|
---|
65 | * Plays a sound specified by the given filename, resource, or
|
---|
66 | * system event.
|
---|
67 | * Parameters: LPCSTR pszSound
|
---|
68 | * HMODULE hMod
|
---|
69 | * DWORD fdwSound
|
---|
70 | * Variables :
|
---|
71 | * Result :
|
---|
72 | * Remark :
|
---|
73 | * Status :
|
---|
74 | *
|
---|
75 | * Author : Patrick Haller [Tue, 1998/05/05 10:44]
|
---|
76 | *****************************************************************************/
|
---|
77 |
|
---|
78 | ODINFUNCTION3(BOOL, PlaySoundW,
|
---|
79 | LPCWSTR, pszSound,
|
---|
80 | HMODULE, hmod,
|
---|
81 | DWORD, fdwSound)
|
---|
82 | {
|
---|
83 | dprintf(("WINMM:PlaySoundW not implemented\n"));
|
---|
84 | return(FALSE);
|
---|
85 | }
|
---|
86 |
|
---|
87 |
|
---|
88 | /*****************************************************************************
|
---|
89 | * Plays a sound specified by the given filename
|
---|
90 | * Parameters: LPCSTR pszSound
|
---|
91 | * UINT fuSound
|
---|
92 | * Variables :
|
---|
93 | * Result :
|
---|
94 | * Remark :
|
---|
95 | * Status :
|
---|
96 | *
|
---|
97 | * Author : Patrick Haller [Tue, 1998/05/05 10:44]
|
---|
98 | *****************************************************************************/
|
---|
99 |
|
---|
100 | ODINFUNCTION2(BOOL, sndPlaySoundA,
|
---|
101 | LPCSTR, pszSound,
|
---|
102 | UINT, fuSound)
|
---|
103 | {
|
---|
104 | dprintf(("WINMM:sndPlaySoundA not implemented\n"));
|
---|
105 | return(FALSE);
|
---|
106 | }
|
---|
107 |
|
---|
108 |
|
---|
109 | /*****************************************************************************
|
---|
110 | * Plays a sound specified by the given filename
|
---|
111 | * Parameters: LPCWSTR pszSound
|
---|
112 | * HMODULE hMod
|
---|
113 | * DWORD fdwSound
|
---|
114 | * Variables :
|
---|
115 | * Result :
|
---|
116 | * Remark :
|
---|
117 | * Status :
|
---|
118 | *
|
---|
119 | * Author : Patrick Haller [Tue, 1998/05/05 10:44]
|
---|
120 | *****************************************************************************/
|
---|
121 |
|
---|
122 | ODINFUNCTION2(BOOL, sndPlaySoundW,
|
---|
123 | LPCWSTR, pszSound,
|
---|
124 | UINT, fuSound)
|
---|
125 | {
|
---|
126 | dprintf(("WINMM:sndPlaySoundW not implemented\n"));
|
---|
127 | return(FALSE);
|
---|
128 | }
|
---|
129 |
|
---|