I found that I can set bVirtualizeWhenSilent
directly in the code. But even when I set bVirtualizeWhenSilent
to true, sounds not come back when I re-enter the sound area.
I debug the code and find the only place using bVirtualizeWhenSilent
is
if (WaveInstance->GetVolume() > KINDA_SMALL_NUMBER || (bVirtualizeWhenSilent && AudioDevice->VirtualSoundsEnabled()))
{
WaveInstances.Add(WaveInstance);
}
And it seems AudioDevice->VirtualSoundsEnabled() always return false. Is there any way to make it true?
Btw, I’m using SpawnSoundAttached to play the media sound wave.
Thanks a lot.