ForNeVeR/bloodmasters

Sound.SetRandomOffset gets overwritten by Sound.Play

Closed this issue · 0 comments

Let's take a look at this piece of code:

// firesound.SetRandomOffset();
// firesound.Play(true);

So we first set random offset for the sound, and then play it.

But Sound.Play reverts our random offset to 0:

_controlSample.CurrentPosition = 0;

We need to investigate if we can simply remove that line, or do smth else