发布于 2005-05-09 10:55:00
0楼
接上边
#pragma code ("Winmm.dll")
BOOL WINAPI PlaySoundA(char* pszSound, char* hmode, DWORD dwFlag);
#pragma code()
#define SND_SYNC 0x0000
#define SND_ASYNC 0x0001
#define SND_NODEFAULT 0x0002
#define SND_LOOP 0x0008
void ASTPlaySound(char *WAVFile, BOOL Loop)
{
if (Loop)
PlaySoundA(WAVFile, NULL, (SND_ASYNC SND_LOOP));
else
PlaySoundA(WAVFile, NULL, SND_ASYNC);
}