Arbitrary Audio Output on a Sample-by-Sample Basis

edited February 2016 in Arduino

I would like to control my computer's audio output to display images on an oscilloscope. My project would be almost trivial if there were some sort of function (or method, I guess) that treats the sound card digital to analog converter more like the way it's done on an Arduino. That is, if analogWrite(LEFT_SPEAKER, outputValue); or something similar were in a Processing library, everything would be perfect.

As far as I have been able to determine so far, it seems that I need to fill an array and play that array with one of the audio libraries. I would fill the array with whatever I calculate I need for the oscilloscope display and keep it filled as I go.

It seems like this shouldn't be an unusual task, but I haven't been able to find much information (or I have been looking in the wrong places). Has anyone out there come across something like this before and can point me to it?

Thanks for your help.

Sign In or Register to comment.