Commit 73496798 authored by Ulrich Weigand's avatar Ulrich Weigand Committed by Alexandre Julliard

Added PlaySound16, sndPlaySound16.

parent dc8cf100
......@@ -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
......
......@@ -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]
*/
BOOL16 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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment