On Tuesday, 5 February 2019 at 17:01:54 UTC, Adam D. Ruppe wrote:
On Tuesday, 5 February 2019 at 16:50:36 UTC, Murilo wrote:
Hi guys, I would like to play simple sounds but I want something easy to use, can you show me the simplest way to do that? Like a function that just loads a .wav and plays it.

If you are on Windows, the OS has a nice function for little ones:

https://docs.microsoft.com/en-us/previous-versions//dd743680(v=vs.85)#examples

Hi, thanks for the reply.
import std.stdio, core.sys.windows.mmsystem;

void main()
{
        PlaySound("shoot.wav", null, SND_FILENAME);
}
When I compile the code above the compiler says Error: linker exited with status 1
What should I do?

Reply via email to