0
0

Hi, I’m getting very frustrated trying to draw the complete waveform for an OGG file in C#. There is no need to play the file and I need to draw it as fast as possible.
Can someone please post a sample on the best way to do this?
I am currently loading the file using createSound, locking it to grab the raw data from buffer and then trying to iterate through the data. However, Im not having much luck: is this the correct way to retrieve the data in the first place? Surely someone has a working sample they want to show off? 😉
Thanks.

  • You must to post comments
0
0

I did something similar based on the offlinedecoding example. Very easy, and it works for sounds in any format AFAIK.

  • You must to post comments
0
0

locking the data would work, just pass the length in bytes, then the void *ptr1 would be converted to the sample format of the sound, you should check the getting started tutorial on sample formats and stereo interleaving if you’re unsure about that.

  • You must to post comments
0
0

Ever since I registered in the FMOD forum (year 2003) I always see that there are doubts on draw waveforms (I also have them). Somebody could make an example definitive that works? :roll:

  • You must to post comments
0
0

Yes please… everyone keeps saying it’s easy, or that they have done it before, but they never seem to want to give a definitive example :(
For some of us FMOD nubs its frustrating :(

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.