#inlcude <iostream>
#include <windows.h>
#pragma comment( lib, "winmm.lib" )
#pragma comment( lib, "Strmiids.lib" )
int main()
{
PlaySound(TEXT("C:\\Program Files (x86)\\soundtrack.mp3"), NULL, SND_FILENAME);
}
The sound specified by pszSound must fit into available physical memory and be playable by an installed waveform-audio device driver.