#include <windows.h>
#include<iostream>
#pragma comment(lib,"winmm.lib")
using namespace std;
int main( void )
{
while(1)
{
PlaySound(TEXT("order.wav"),NULL,SND_FILENAME|SND_SYNC);
//PlaySound(TEXT("order.wav"),NULL,SND_FILENAME|SND_ASYNC);
}
return 0;
}
C++ PlaySound() 播放wav
最新推荐文章于 2023-09-27 21:45:13 发布