您的位置:首页 > 移动开发 > 微信开发

用VC实现声音(wav)播放的小程序

2011-09-26 19:36 369 查看
把音频文件放在工程当前目录下,下面代码便可实现音频播放。

#include "stdafx.h"

#include <windows.h>

#include <mmsystem.h>

#include <conio.h>

#pragma comment(lib,"winmm.lib")

int main(int argc, char* argv[])

{

PlaySound("019.wav", NULL,!SND_SYNC|SND_LOOP );

getch();

return 0;

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: