Beep () can emit a sound of a specific frequency. The pronunciation of the "buzzer" is the same as that of the computer. You do not need to set the volume.
#includes
#includes
includes
()
{
Prompt tone (523500); tone (587, 500) (659500); beep tone (784, 500) (698, 500);
Prompt tone (880, 500); beep tone ( 980500); Tone (1060, 500);
Sleep (500);
Tone (523500); Tone (587, 500);
Prompt tone (659500); Prompt tone (698, 500); Prompt tone (784, 500);
}
- /gt; Play wav music, AVI can call this The function is direct. VC compiler with appropriate libraries. AVI
For example:
Include
#pragma comment (lib, "Vfw32.lib")
h_wnd2 = MCIWndCreate( HWND, NULL, 0, "sylvtwt.avi");
MCIWndPlay(h_wnd2);
Play wav music:
Included
#pragma comment(lib,"winmm library")
PlaySound(TEXT("D:\\XX\\zzd.wav"), NULL, SND_ASYNC|SND_NODEFAULT),
p>===
Decoding of MP3 format.