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

What C libraries do I need to play a wav file on a Win32 system?

And what code do these libraries use?

+3
source share
1 answer

Use the Win32 API: PlaySound

Include library: Winmm.lib
Title includes: Mmsystem.h(enable Windows.h)
Example:

PlaySound(TEXT("recycle.wav"), NULL, SND_FILENAME);
+7
source

Source: https://habr.com/ru/post/1766109/


All Articles