The easiest way to go about doing that is to convert the mp3 file to a wav file to avoid having to import the AudioX library to your program which may require additional work. Here is the code I came up with that worked on a video game i developed.
#include <windows.h>
#include <mmsystem.h>
#pragma comment(lib, "winmm.lib" )
char* declaredVariabl e = "C:\\nameOfSong .wav";...
Leave a comment: