Jump to content


OpenGL+OpenAL Oscilloscope


  • You cannot reply to this topic
No replies to this topic

#1 Kings

    New Member

  • Members
  • Pip
  • 1 posts

Posted 08 September 2007 - 12:30 AM

I'm working on a project using OpenAL and OpenGL, the latter I'm au fait with but I'm new to audio programming and running into a bit of trouble. To help me visualize any signal processing I'm doing I'm trying to implement a crude oscilloscope with glPoint but I'm having a hard time finding the amplitude of the waveform.

I'm loading a 16bit PCM wav with the following code:

ALvoid* data;
    alutLoadWAVFile("wavdata/Notify.wav", &format, &data, &size, &freq, &loop);

Now from my very limited knowledge of OpenAL and the PCM format, I was lead to believe that 'data' should contain 16bit chunks of data representing the waveform amplitude, but the access violations are making me think otherwise.

Could anybody shed any light on this? I've been googling all night and I can't find anything of great use.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users