Thread overview
Playing audio files and related functions?
Oct 26, 2015
Cleverson
Oct 26, 2015
Cleverson
Oct 26, 2015
ponce
Oct 26, 2015
WhatMeWorry
Oct 27, 2015
Cleverson
October 26, 2015
Hello,

Is there any library or module for easily managing basic audio functions, e.g., play/pause/stop a sound? I can't find it amongst the standard library and the packages colection, or maybe I don't know how to search properly, since I'm new to D and its ecosystem.

Thank you,
Cleverson
October 26, 2015
Forgot to say, it may be for Windows only, in case a portable version isn't available.
October 26, 2015
On Monday, 26 October 2015 at 21:25:58 UTC, Cleverson wrote:
> Hello,
>
> Is there any library or module for easily managing basic audio functions, e.g., play/pause/stop a sound? I can't find it amongst the standard library and the packages colection, or maybe I don't know how to search properly, since I'm new to D and its ecosystem.
>
> Thank you,
> Cleverson

There doesn't seem to be a pure D solution but bindings to existing C or C++ libraries do exist.

- SDL_mixer through DerelictSDL2: http://code.dlang.org/packages/derelict-sdl2 (is an extension of SDL).

- FMOD through DerelictFMOD: http://code.dlang.org/packages/derelict-fmod (not free for commercial use)

- BASS through DerelictBASS: http://code.dlang.org/packages/derelict_extras-bass (not free for commercial use)




October 26, 2015
On Monday, 26 October 2015 at 21:25:58 UTC, Cleverson wrote:
> Hello,
>
> Is there any library or module for easily managing basic audio functions, e.g., play/pause/stop a sound? I can't find it amongst the standard library and the packages colection, or maybe I don't know how to search properly, since I'm new to D and its ecosystem.
>
> Thank you,
> Cleverson

And there is DerelictAL for OpenAL.
October 27, 2015
Thanks all for the answers, I'll investigate all.