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? 😉
- danielm asked 10 years ago
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.
Please login first to submit.