This code works in editor. I can put a array of uint8 into function and it returns USoundWave I can play. However, when i Package game, I cannot hear anything. Any idea why this works inside PIE but on in packaged game?
If itâs working in the editor but not the game, are you sure the packaged game is trying to load the file from its actual location? If youâre using the relative path, try using the absolute path for testing purposes or send a log message to confirm that you actually found it. You probably already ruled this most obvious step out, but hey, you never know.
thanks. Yes I am sure. I am connecting to back-end that answers by delegate, sending array of uint8. So I am not loading sound from file. Back end connection works because I get message from there with filled array.
Excuse me: Is your problem solved? I also encountered the same problem as you: The .Wav file was read from the outside and the USoundWave was created for playback. The problem is that it works fine when I use the âplayâ feature of the editor, I can hear the sound, but if I package it, I will get Three errors. Can anyone help me?
LogAudio: Error: Attempt to access the DDC when there is none available on sound âSoundWave /Script/Engine.SoundWave:SoundWave_2147482554â, format = OGG. Should have been cooked.
LogAudio: Error: FVorbisAudioInfo::ReadCompressedInfo, ov_open_callbacks error code: -132
LogAudio: Error: Failed to parse header for compressed vorbis file.
For anybody interested in this: I found a way to make it work in a packaged game with shipping configuration in UE 4.25.3: Instead of writing to USoundWave::RawData you need to write to USoundWave::RawPCMData. Here is an example: