C++读取资源文件WAV格式音频

¥ 500内

¥ 500内 匠迹众包 Technology & Programming China
24 days ago

Description

C++读取资源文件WAV格式音频

经本人测试,编译为‘EXE程序’音频声音正常播放。

编译为‘.dll程序’,音频声音异常,无声音播放。


````
#include
#include
#include "resource1.h"
#include
#include
#pragma comment(lib,"winmm.lib")



int main()
{
PlaySound(MAKEINTRESOURCE(IDR_WAVE1), NULL, SND_RESOURCE | SND_ASYNC);


system("pause");
return 0;
}

关注公众号,不定期副业成功案例分享
Follow WeChat

Success story sharing

Want to stay one step ahead of the latest teleworks?

Subscribe Now

Similar Teleworks

¥ 20000.00 Technology & Programming A5任务 China
2 days ago
¥ 2000 Technology & Programming 匠迹众包 China
4 days ago