MP3 playing using mci send string c++
I'm trying to play some mp3 files as my background music in one of my project which Im doing. I tried to play it using mcisendstring but it just couldnt work :( These what I have done: CMP3_MCI myMp3; std::string address= "C:\\Users\\music embed testing\\test.mp3"; myMp3.Load(address); myMp3.Play(); //Load function void Load(string szFileName) { m_szFileName = szFileName; Load2(); } //load2 function void Load2() { std::string szCommand = "open \"" + GetFileName() + "\" type mpegvideo alias " + GetFileName(); mciSendString(szCommand.c_str(), NULL, 0, 0); } //play function void Play() { std: