Commit 74471e85 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

winmm: sndPlaySound can play resource sounds.

parent d0d7c47b
...@@ -566,7 +566,7 @@ BOOL WINAPI PlaySoundW(LPCWSTR pszSoundW, HMODULE hmod, DWORD fdwSound) ...@@ -566,7 +566,7 @@ BOOL WINAPI PlaySoundW(LPCWSTR pszSoundW, HMODULE hmod, DWORD fdwSound)
*/ */
BOOL WINAPI sndPlaySoundA(LPCSTR pszSoundA, UINT uFlags) BOOL WINAPI sndPlaySoundA(LPCSTR pszSoundA, UINT uFlags)
{ {
uFlags &= SND_ALIAS_ID|SND_FILENAME|SND_ASYNC|SND_LOOP|SND_MEMORY|SND_NODEFAULT|SND_NOSTOP|SND_SYNC; uFlags &= SND_RESOURCE|SND_ALIAS_ID|SND_FILENAME|SND_ASYNC|SND_LOOP|SND_MEMORY|SND_NODEFAULT|SND_NOSTOP|SND_SYNC;
return MULTIMEDIA_PlaySound(pszSoundA, 0, uFlags, FALSE); return MULTIMEDIA_PlaySound(pszSoundA, 0, uFlags, FALSE);
} }
...@@ -575,7 +575,7 @@ BOOL WINAPI sndPlaySoundA(LPCSTR pszSoundA, UINT uFlags) ...@@ -575,7 +575,7 @@ BOOL WINAPI sndPlaySoundA(LPCSTR pszSoundA, UINT uFlags)
*/ */
BOOL WINAPI sndPlaySoundW(LPCWSTR pszSound, UINT uFlags) BOOL WINAPI sndPlaySoundW(LPCWSTR pszSound, UINT uFlags)
{ {
uFlags &= SND_ALIAS_ID|SND_FILENAME|SND_ASYNC|SND_LOOP|SND_MEMORY|SND_NODEFAULT|SND_NOSTOP|SND_SYNC; uFlags &= SND_RESOURCE|SND_ALIAS_ID|SND_FILENAME|SND_ASYNC|SND_LOOP|SND_MEMORY|SND_NODEFAULT|SND_NOSTOP|SND_SYNC;
return MULTIMEDIA_PlaySound(pszSound, 0, uFlags, TRUE); return MULTIMEDIA_PlaySound(pszSound, 0, uFlags, TRUE);
} }
......
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