Solved❓ <mmsystem.h> Sounds

Posts 1–2 of 2 · Page 1 of 1
❓ <mmsystem.h> Sounds
Hello! First of all sorry for my bad English.

My problem is that sounds aren't playing in Release mode. But they are in Debug mode.
I have linked winmm.lib @ linker/Input/Additional-Dependencies

Code:
...
#include <mmsystem.h>

int main()
{
	PlaySound(TEXT("start.wav"), NULL, SND_ASYNC);
...
}
Project builds and works well.

Code:
------ Build started: Project: joeware, Configuration: Release Win32 ------
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(387,5): warning MSB8028: The intermediate directory (Release\) contains files shared from another project (joeware.vcxproj).  This can lead to incorrect clean and rebuild behavior.
1>Generating code
1>All 141 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
1>Finished generating code
1>joeware.vcxproj -> J:\joeware\Release\joeware.exe
1>Done building project "joeware.vcxproj".
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========


Thanks!
Working!
I needed my .wav files at the same folder as my .exe

You may close the thread.
Posts 1–2 of 2 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us