mirror of
https://git.code.sf.net/p/mingw-w64/mingw-w64
synced 2024-11-23 09:54:39 +08:00
f630e28a05
e8b3bf18df
was breaking w32api for Cygwin, which use win32 APIs,
but don't define _WIN32.
Signed-off-by: Jonathan Yong <10walls@gmail.com>
72 lines
2.1 KiB
C
72 lines
2.1 KiB
C
/**
|
|
* This file has no copyright assigned and is placed in the Public Domain.
|
|
* This file is part of the mingw-w64 runtime package.
|
|
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
|
*/
|
|
|
|
#ifndef _PLAYSOUNDAPI_H_
|
|
#define _PLAYSOUNDAPI_H_
|
|
|
|
#include <apiset.h>
|
|
#include <apisetcconv.h>
|
|
|
|
#include <mmsyscom.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
|
|
|
#ifndef MMNOSOUND
|
|
|
|
WINMMAPI WINBOOL WINAPI sndPlaySoundA(LPCSTR pszSound, UINT fuSound);
|
|
WINMMAPI WINBOOL WINAPI sndPlaySoundW(LPCWSTR pszSound, UINT fuSound);
|
|
#define sndPlaySound __MINGW_NAME_AW(sndPlaySound)
|
|
|
|
#define SND_SYNC 0x0000
|
|
#define SND_ASYNC 0x0001
|
|
#define SND_NODEFAULT 0x0002
|
|
#define SND_MEMORY 0x0004
|
|
#define SND_LOOP 0x0008
|
|
#define SND_NOSTOP 0x0010
|
|
|
|
#define SND_NOWAIT __MSABI_LONG(0x00002000)
|
|
#define SND_ALIAS __MSABI_LONG(0x00010000)
|
|
#define SND_ALIAS_ID __MSABI_LONG(0x00110000)
|
|
#define SND_FILENAME __MSABI_LONG(0x00020000)
|
|
#define SND_RESOURCE __MSABI_LONG(0x00040004)
|
|
|
|
#define SND_PURGE 0x0040
|
|
#define SND_APPLICATION 0x0080
|
|
#define SND_SENTRY __MSABI_LONG(0x00080000)
|
|
#define SND_RING __MSABI_LONG(0x00100000)
|
|
#define SND_SYSTEM __MSABI_LONG(0x00200000)
|
|
|
|
#define SND_ALIAS_START 0
|
|
|
|
#define sndAlias(ch0, ch1) (SND_ALIAS_START + (DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8))
|
|
|
|
#define SND_ALIAS_SYSTEMASTERISK sndAlias('S', '*')
|
|
#define SND_ALIAS_SYSTEMQUESTION sndAlias('S', '?')
|
|
#define SND_ALIAS_SYSTEMHAND sndAlias('S', 'H')
|
|
#define SND_ALIAS_SYSTEMEXIT sndAlias('S', 'E')
|
|
#define SND_ALIAS_SYSTEMSTART sndAlias('S', 'S')
|
|
#define SND_ALIAS_SYSTEMWELCOME sndAlias('S', 'W')
|
|
#define SND_ALIAS_SYSTEMEXCLAMATION sndAlias('S', '!')
|
|
#define SND_ALIAS_SYSTEMDEFAULT sndAlias('S', 'D')
|
|
|
|
WINMMAPI WINBOOL WINAPI PlaySoundA(LPCSTR pszSound, HMODULE hmod, DWORD fdwSound);
|
|
WINMMAPI WINBOOL WINAPI PlaySoundW(LPCWSTR pszSound, HMODULE hmod, DWORD fdwSound);
|
|
#define PlaySound __MINGW_NAME_AW(PlaySound)
|
|
|
|
#endif /* MMNOSOUND */
|
|
|
|
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _PLAYSOUNDAPI_H_ */
|