Stop using private variables in virtual functions please!

So I tried, and while the static Sound Mix asset does work (I can edit the asset during gameplay and the volume is updated), I can’t get the override working from code.


FAudioDevice* AudioDevice = GEngine->GetMainAudioDevice();
check(AudioDevice);

AudioDevice->SetSoundMixClassOverride(MasterSoundMix, MasterSoundClass, MasterVolume, 1.0f, 0.5f, true);

I checked that :

  • my Sound Class is used in every sound in the game (it’s actually just from /Engine/EngineSounds/Master )
  • my Sound Mix asset references my Sound Class
  • like I said, updating values of the sound mix in the asset does change the volume.

Doesn’t seem that hard so I must be doing something wrong :confused: