On Wednesday, 5 July 2017 at 07:21:45 UTC, Sebastiaan Koppe wrote:
On Wednesday, 5 July 2017 at 05:34:37 UTC, FoxyBrown wrote:
On Tuesday, 4 July 2017 at 20:37:44 UTC, Sebastiaan Koppe wrote:
Portaudio is simple as well. And nice cross platform.

are there any bindings?

Sure, see http://code.dlang.org/packages/portaudio

Sorry, for that question but now, as I have several different options - all not 'overdocumented' - so what would be the shortest possible D program waiting for input and playing a sound from a file in parallel?

Something short like the single-file dub example...?

#!/usr/bin/env dub
/+ dub.sdl:
        name "hello"
+/
void main() {
        
 writef("Do you like the music?");
          char[] answer;
          answer = readln();
          writef("This was your Answer: ", answer);
        
}





Reply via email to