but at the beginning of main() set it up with
auto audio = new AudioPcmOutThread();
audio.start();
scope(exit) {
audio.stop();
audio.join();
}
Thanks Adam. That worked on Windows, but now that I have switched
to Linux Mint it is throwing this:
arsd.simpleaudio.AlsaException@arsd/simpleaudio.d(1170): params
init: Operation not permitted
----------------
??:? arsd.simpleaudio.snd_pcm_t*
arsd.simpleaudio.openAlsaPcm(arsd.simpleaudio.snd_pcm_stream_t)
[0x55eab05a0f4a]
??:? ref arsd.simpleaudio.AudioOutput
arsd.simpleaudio.AudioOutput.__ctor(int) [0x55eab059f7ec]
??:? void arsd.simpleaudio.AudioPcmOutThread.run()
[0x55eab059f23d]
??:? void core.thread.Thread.run() [0x55eab05c10d1]
??:? thread_entryPoint [0x55eab05d809b]
??:? [0x7fb40e4ff6da]
What should I do?