PlaySoundW

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 1


The 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




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux