SoundInstance API WIP

This commit is contained in:
2023-06-19 23:00:15 +02:00
parent 2fb5125ece
commit 72b6896d3e
8 changed files with 54 additions and 12 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -49,7 +49,10 @@ public class TestGame : Game
if (_inputHandler.IsActionJustPressed("play"))
{
_audioBackend.PlaySoundVariation(_testSound, "Master", 0.1f);
var instance = _audioBackend.CreateInstance(_testSound)
.PitchVariation(min: 0.9f, max: 1.2f)
.VolumeVariation(min: 0.90f, max: 1.0f);
instance.Play();
}
_audioBackend.Update();