I would like to decode OGG data (NKS preview files) directly from memory into memory, so users can listen to a short preview if the NKS preview-files are installed from within my own browser.
The idea is that if a preset is selected (just selected, not double clicked or anything), the code would load the entire OGG file into memory (it’s maximum of six seconds long) and decode it into memory, where it can then be mixed into the output of the plugin for instant preview (similar how it works in the Komplete Kontrol browsers).
I’ve looked at the OggVorbisAudioFormat class etc. but it seems a bit convoluted. Is there a demo somewhere, or can somebody with more experience in that field post a short code-snipped?