Jump to content
  • Advertisement
Sign in to follow this  
pavel989

oscilloscope

This topic is 3635 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i have absolutely no where to begin. I want to make one of those kool visualizations, like in iTunes or WMP, as a standalone app using C++ and OpenGL. my problem is that i have no idea where to find either an api for this, or at least how to access the sound card to attain the information necessary for this. Is that even how real time PC-based oscilloscopes work?

Share this post


Link to post
Share on other sites
Advertisement
Oscilloscopes in things like iTunes or Winamp are implemented by analyzing the waveforms of audio. Because digital audio is a constant stream of signal information, you need to evaluate it in windows using a fourier transform, in the Frequency Domain. Most fourier work is done using FTTs, or Fast-Fourier transforms. The idea is to take a sliding window of digital audio, convert it to the frequency domain and do some analysis.

In terms of getting the audio, you can test it with any kind of audio, but for real-time analysis you could use direct sound and capture from the sound card's input.

I would guess you would want to take the frequency data and use it to inform a series of points and draw them with direct3d or the like.

You can find information and source here: http://www.musicdsp.org/

Specifically http://www.musicdsp.org/search.action.php with FFT

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!