Where SoundAsset is a USoundWave passed into the function.
However, it seems like in 5.1 and above, RawData was made editor only, so. Is there some other way I can access this data so I can use it similarly?
it’s in USoundWave => so inside of SoundWave.h and SoundWave.cpp
Yeah after taking a longer look it seems to be editor only.
I think the audio may be automatically compressed on build.
You may need to run it through AudioDecompressor to uncompress it and read the data
AudioDevice.cpp seems to have an working decompression syntax.
Edit:
Perhaps you could use Audio.h
/** Utility to serialize raw PCM data into a wave file. */
ENGINE_API void SerializeWaveFile(TArray<uint8>& OutWaveFileData, const uint8* InPCMData, const int32 NumBytes, const int32 NumChannels, const int32 SampleRate);