Added PlaySound16, sndPlaySound16.

This commit is contained in:
Ulrich Weigand 1999-05-04 15:29:01 +00:00 committed by Alexandre Julliard
parent dc8cf1002c
commit 73496798e0
2 changed files with 35 additions and 5 deletions

View File

@ -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

View File

@ -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,12 +407,27 @@ 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]
*/