My sound is flickering (making click noises) when the volume is changed by my code or by a changed distance.
And when using FixInterpolation() it just crashes (log says nothing about the crash).
// at application start:
sound_engine=cache->GetResource<Sound>("Sounds/engine.ogg");
sound_engine->SetLooped(true);
//sound_engine->FixInterpolation(); // this crashes
sound_source=node_plane->CreateComponent<SoundSource3D>();
sound_source->SetNearDistance(1);
sound_source->SetFarDistance(2000);
sound_source->SetSoundType(SOUND_EFFECT);
sound_source->Play(sound_engine);
sound_source->SetGain(0);
...
// when updating:
sound_source->SetFrequency(engine*200); // engine is a float between 0.0 and 400.0. Same issues when setting to a constant value.
sound_source->SetGain(Clamp(engine,0.0,200.0)/200.0); // flickering sound. None when not changing distance and the engine value is not changing.
There is also no flickering sound when the last line is commented out and the distance is constant (even if the engine value changes).
I’m using this sound (converted to .ogg, but it’s also flickering with the original .wav): freesound.org/people/Marlon … ds/242740/
And I’m using the current Git master version of Urho.
It’s not flickering when I have never changed the frequency.
Does this FixInterpolation() do something useful when the sound is already perfectly looping? I thought it might fix the flickering.