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);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With