开发者

What libraries/how to play wav file on Windows32 in C?

开发者 https://www.devze.com 2023-01-17 18:09 出处:网络
What libraries for C do I need to play a wav开发者_开发问答 file on a Win32 system? And what is the code to use those libraries?Use the Win32 API: PlaySound

What libraries for C do I need to play a wav开发者_开发问答 file on a Win32 system?

And what is the code to use those libraries?


Use the Win32 API: PlaySound

Include library: Winmm.lib
Header include: Mmsystem.h (include Windows.h)
Example:

PlaySound(TEXT("recycle.wav"), NULL, SND_FILENAME);
0

精彩评论

暂无评论...
验证码 换一张
取 消