This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
PlaySoundW
- From: "Hotmail \(ArbolOne\)" <ArbolOne at hotmail dot ca>
- To: "gcc-help Mailing List" <gcc-help at gcc dot gnu dot org>
- Date: Sat, 16 May 2015 12:40:27 -0400
- Subject: PlaySoundW
- Authentication-results: sourceware.org; auth=none
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