white noise app in D

Posted 2020-08-31

I've been busy with work and preparations for the baby that is only about two weeks away, but part of that was to make a little white noise program. Just a few lines of D I will share with you below.

Core D Development Statistics

In the community

Community announcements

See more at the announce forum.

Symmetry D Jobs on Reddit

Laeeth posted more here: https://www.reddit.com/r/programming/comments/ikjh83/d_foundation_is_beefing_up/?sort=new

White noise in D

import arsd.simpleaudio;
import std.random;

void main() {
        auto ao = AudioOutput(0);
        ao.fillData = delegate(short[] buffer) {
                foreach(ref item; buffer)
                        item = uniform(short.min, short.max);