www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Playing audio files and related functions?

reply Cleverson <clcaul live.com> writes:
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
Oct 26 2015
next sibling parent Cleverson <clcaul live.com> writes:
Forgot to say, it may be for Windows only, in case a portable 
version isn't available.
Oct 26 2015
prev sibling next sibling parent ponce <contact gam3sfrommars.fr> writes:
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)
Oct 26 2015
prev sibling parent reply WhatMeWorry <kheaser gmail.com> writes:
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.
Oct 26 2015
parent Cleverson <clcaul live.com> writes:
Thanks all for the answers, I'll investigate all.
Oct 27 2015