OGG file importer - How to work with the Buffer?

So I created me a Wave Header and filled it similar to another page I used.


FWaveHeader MyWaveHeader = CreateWaveHeader(QualityInfo); // QualityInfo holds NumChannels etc already extracted from the OGG file
WaveHeader.Empty(44); // TArray<uint8>
WaveHeader.AddUninitialized(44);
FMemory::Memcpy(WaveHeader.GetData(), &MyWaveHeader, 44);

The struct looks like the one you posted. I tripple checked the values I took (most of them were already filled in despite the chunksize,
but I’m 99% sure that I calculated that correctly as I took the values that the pages tell me to use :confused: “NumSamples * NumChannels * BitsPerSample/8”)

I then used ReadCompressedData to

Then I went ahead and simply appended the TArray<uint8> RawPCMData to my TArray<uint8> WaveHeader.
Now I tried using ReadWaveInfo from FWaveModInfo with the new appended array to check if that runs into any error.
It sadly gets a warning:

But it also cuts it down then, so I ignored it for now.
Then I copied the appended array over to the RawData of the USoundWave, but that doesn’t seem to work, as the I still can’t play it and the output log on import gives me this:

I’m kinda lost at what this could cause. It seems like I really don’t understand how OGG, WAV, uint8* Buffers and all that stuff work.
In theory it seems so simple but I can’t even tell if the data I use can be used like that. I would assume that the ReadCompressedData function of FVorbisAudioInfo should give me the RawPCM Data,
but then again, it might already fail here.