用playsound函数,在mmsystem中定义, 第三个参数加上snd_memory,指定内存中的映像,详细地说明如下: 例子:playSound(pchar(voiceName), 0, snd_memory or snd_async or ....)) BOOL PlaySound(LPCSTR pszSound, HMODULE hmod, DWORD fdwSound); Plays a sound specified by the given filename, resource, or system event. (A system event may be associated with a sound in the registry or in the WIN.INI file.) ?Returns TRUE if successful or FALSE otherwise.
第三个参数加上snd_memory,指定内存中的映像,详细地说明如下:
例子:playSound(pchar(voiceName), 0, snd_memory or snd_async or ....))
BOOL PlaySound(LPCSTR pszSound, HMODULE hmod, DWORD fdwSound); Plays a sound specified by the given filename, resource, or system event. (A system event may be associated with a sound in the registry or in the WIN.INI file.) ?Returns TRUE if successful or FALSE otherwise.