Can't save map because of transient external object

Hi, when I save my map I get this error:

Can't save E:/UnrealProjects/Microphone/Content/NewMap.umap: Graph is linked to private object(s) in an external package.
External Object(s):
SoundWaveProcedural_1
/Engine/Transient
  
Try to find the chain of references to that object (may take some time)?

I have a custom c++ character with SoundWaveProcedural

	VoiceCaptureSoundWaveProcedural = NewObject<USoundWaveProcedural>();
	VoiceCaptureSoundWaveProcedural->SampleRate = 22050;
	VoiceCaptureSoundWaveProcedural->NumChannels = 1;
	VoiceCaptureSoundWaveProcedural->Duration = INDEFINITELY_LOOPING_DURATION;
	VoiceCaptureSoundWaveProcedural->SoundGroup = SOUNDGROUP_Voice;
	VoiceCaptureSoundWaveProcedural->bLooping = false;
	VoiceCaptureSoundWaveProcedural->bProcedural = true;
	VoiceCaptureSoundWaveProcedural->Pitch = 0.85f;
	VoiceCaptureSoundWaveProcedural->Volume = 5.f;

If I remove these lines everything works fine. I have no blueprints.

Thank you for your support.

You should use the synth component in 4.17 for your procedural sound wave, if you can. I handled all the code required to avoid these types of issues. If you don’t want to upgrade to 4.17, you should use the synth component in 4.17 as a reference on how to properly setup a procedural sound wave to avoid these issues.

Hi, thanks for your answer. I’m totally new to unreal audio components and the synth component, are there sample codes?
Thank you.

Yes, you can get access to the github repo and all source code. Then just search the code for USynthComponent, it’s implementation, and usage of it. Our audio forum has more information about 4.17 audio features. https://forums.unrealengine.com/development-discussion/audio