bool ps = !!PlaySoundW(Soundfile.c_str(), NULL, SND_ASYNC); if(ps == false) { std::wcout << L"ps is false, it is " << ps << endl; } else { std::wcout << L"ps is not false, it is " << ps << endl; } output: ps is not false, it is 1The code above compiles with out any problem, but now sound is produced. I have added –lwinmm to the Linker Settings –> Other Linker Options in Code Blocks, is there anything else I should do?
I am using MinGW64 MSYS2 on my Win8.1 box.Thanks