Hey there sound programmers, I have some questions about accessing the PCM sample data of a USoundWave that’s been loaded from an Ogg (that is, has not gone through the normal WAV -> OGG conversion that happens on import).
What I’m ultimately trying to do is use the Sound Visualizations plugin, which works great on SoundWaves imported from a WAV via the normal content import functionality in the editor, but does not have the right data to work when used on a SoundWave that’s been loaded directly from an OGG.
Now, I know exactly what data the Sound Visualizations functions need to access, which is simply the actual PCM samples. I’ve tried setting it up so that on load, the USoundWave::RawPCMData is populated by VorbisAudioInfo::ExpandFile, which seems to run successfully, but ends up with no data in RawPCMData array.
Does anyone know how to get access to the samples in this sort of SoundWave that’s been loaded from an Ogg directly?
As an aside:
Also, during this process I’ve found that quite a few other users have run into the problem that Sound Visualizations doesn’t work outside the editor. The response was that because i’ts a niche feature, and because there are two small arrays of ints in USoundWave that are marked WITH_EDITORONLY that the plugin seemingly relies on, this functionality wouldn’t be fixed.
What I found out though is that the ChannelSizes etc. that are marked WITH_EDITORONLY are basically not necessary except in the >2 channel case, and even then, those arrays hold values that can be gleaned from the rest of the SoundWave easily enough, or worked around.
So, if I can get this fixed, I’d also be happy to make it so that Sound Visualizations will work with packaged builds.