Basic sounds' playing

John C via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Oct 8 00:51:47 PDT 2016


On Saturday, 8 October 2016 at 01:00:20 UTC, Cleverson Casarin 
Uliana wrote:
> Hello all, starting to learn d, apreciating it so far. I'd like 
> to play/stop wave sound files assynchronously on Windows. Can I 
> get a module for that by installing a particular compiler, or 
> is there any package for it instead?
>
> Thank you,
> Cleverson

For basic playback of wave files, you could use the native 
PlaySound function, imported in core.sys.windows.mmsystem. 
https://msdn.microsoft.com/en-us/library/windows/desktop/dd743680(v=vs.85).aspx


More information about the Digitalmars-d-learn mailing list