Audio in Pak file fails to load

Rareden
Tue, 16 Mar 2021 08:21:05 +0000
Audio

There appears to be a bug in 4.26.1 with loading any audio files from a pak file that are loaded during runtime.
This a repeatable issue from my tests.
To Produce: create a packaged game, in separate uproject that uses the same code, import some audio files, create some blueprint that plays them then cook and package the related assets into a pak file.
Once loaded in the runtime game the files will throw the errors

USoundWave::BeginGetCompressedData
LogAudio: Error: Attempt to access the DDC when there is none available on sound " sound file"  format = OGG00000000. Should have been cooked.

FVorbisAudioInfo::ReadCompressedInfo
LogAudio: Error: FVorbisAudioInfo::ReadCompressedInfo, ov_open_callbacks error code: -132

USoundWave::InitAudioResource
  FByteBulkData* Bulk = GetCompressedData(Format, GetPlatformCompressionOverridesForCurrentPlatform());
returns null

importing paks like this worked fine in versions 4.22 → 4.25 so this seems to be a new bug.
Interestingly USoundWave::GetCompressedData will occur a second time slightly later where it will find valid FByteBulkData for the same file but it the audio will not play after the first failure

7 posts - 3 participants