SoundInstance API WIP
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user