Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
73496798
Commit
73496798
authored
May 04, 1999
by
Ulrich Weigand
Committed by
Alexandre Julliard
May 04, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added PlaySound16, sndPlaySound16.
parent
dc8cf100
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
5 deletions
+35
-5
mmsystem.spec
if1632/mmsystem.spec
+2
-2
mmsystem.c
multimedia/mmsystem.c
+33
-3
No files found.
if1632/mmsystem.spec
View file @
73496798
...
...
@@ -3,8 +3,8 @@ type win16
init MMSYSTEM_LibMain
#1 pascal MMSYSTEM_WEP(word word word ptr) MMSYSTEM_WEP
2 pascal
SNDPLAYSOUND(ptr word) sndPlaySoundA
3
stub PLAYSOUND
2 pascal
sndPlaySound(ptr word) sndPlaySound16
3
pascal PlaySound(ptr word long) PlaySound16
5 pascal mmsystemGetVersion() mmsystemGetVersion16
6 pascal DriverProc(long word word long long) DriverProc16
8 stub WMMMIDIRUNONCE
...
...
multimedia/mmsystem.c
View file @
73496798
...
...
@@ -30,6 +30,7 @@
#include "user.h"
#include "driver.h"
#include "multimedia.h"
#include "syslevel.h"
#include "callback.h"
#include "module.h"
#include "selectors.h"
...
...
@@ -381,9 +382,23 @@ BOOL WINAPI PlaySoundW(LPCWSTR pszSound, HMODULE hmod, DWORD fdwSound)
}
/**************************************************************************
*
sndPlaySoundA [MMSYSTEM.2][WINMM135
]
*
PlaySound16 [MMSYSTEM.3
]
*/
BOOL16
WINAPI
sndPlaySoundA
(
LPCSTR
lpszSoundName
,
UINT16
uFlags
)
BOOL16
WINAPI
PlaySound16
(
LPCSTR
pszSound
,
HMODULE16
hmod
,
DWORD
fdwSound
)
{
BOOL16
retv
;
SYSLEVEL_ReleaseWin16Lock
();
retv
=
PlaySoundA
(
pszSound
,
hmod
,
fdwSound
);
SYSLEVEL_RestoreWin16Lock
();
return
retv
;
}
/**************************************************************************
* sndPlaySoundA [WINMM135]
*/
BOOL
WINAPI
sndPlaySoundA
(
LPCSTR
lpszSoundName
,
UINT
uFlags
)
{
PlaySound_SearchMode
=
1
;
return
PlaySoundA
(
lpszSoundName
,
0
,
uFlags
);
...
...
@@ -392,13 +407,28 @@ BOOL16 WINAPI sndPlaySoundA(LPCSTR lpszSoundName, UINT16 uFlags)
/**************************************************************************
* sndPlaySoundW [WINMM.136]
*/
BOOL
16
WINAPI
sndPlaySoundW
(
LPCWSTR
lpszSoundName
,
UINT16
uFlags
)
BOOL
WINAPI
sndPlaySoundW
(
LPCWSTR
lpszSoundName
,
UINT
uFlags
)
{
PlaySound_SearchMode
=
1
;
return
PlaySoundW
(
lpszSoundName
,
0
,
uFlags
);
}
/**************************************************************************
* sndPlaySound16 [MMSYSTEM.2]
*/
BOOL16
WINAPI
sndPlaySound16
(
LPCSTR
lpszSoundName
,
UINT16
uFlags
)
{
BOOL16
retv
;
SYSLEVEL_ReleaseWin16Lock
();
retv
=
sndPlaySoundA
(
lpszSoundName
,
uFlags
);
SYSLEVEL_RestoreWin16Lock
();
return
retv
;
}
/**************************************************************************
* mmsystemGetVersion [WINMM.134]
*/
UINT
WINAPI
mmsystemGetVersion
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment