Thursday, December 26, 2013

Oscilloscope Visualization Using C++

I got audio capturing to work using the example code from MSDN. By setting my default input device to the "stereo mix" I'm able to get my program to grab all the audio data being sent to my sound card! Using this will enable me to create visualizations like an oscilloscope, spectrum analyzer, and a beat detector.

Here's a quick program I wrote up in C++ drawing directly to the command prompt for a simple oscope visualization. It does really basic triggering on a rising edge so the scope doesn't "dance" around.


No comments:

Post a Comment