diff options
| author | Michael <[email protected]> | 2017-05-13 10:22:51 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-13 10:22:51 -0400 |
| commit | c0f0e99f9d2a092209e710107c1f061fc8a2eaca (patch) | |
| tree | 98169cbdfdc13966719671178ba982dbad5808e3 /ShiftOS_TheReturn/AudioManager.cs | |
| parent | 94e1603b8574b45b809d3c66b6b90e7734a99d1e (diff) | |
| download | shiftos_thereturn-c0f0e99f9d2a092209e710107c1f061fc8a2eaca.tar.gz shiftos_thereturn-c0f0e99f9d2a092209e710107c1f061fc8a2eaca.tar.bz2 shiftos_thereturn-c0f0e99f9d2a092209e710107c1f061fc8a2eaca.zip | |
Dithering, audio volume, and fix shutdown bug
Diffstat (limited to 'ShiftOS_TheReturn/AudioManager.cs')
| -rw-r--r-- | ShiftOS_TheReturn/AudioManager.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ShiftOS_TheReturn/AudioManager.cs b/ShiftOS_TheReturn/AudioManager.cs index c50bd24..fff3369 100644 --- a/ShiftOS_TheReturn/AudioManager.cs +++ b/ShiftOS_TheReturn/AudioManager.cs @@ -88,7 +88,13 @@ namespace ShiftOS.Engine _reader = new AudioFileReader(file); _out = new WaveOut(); _out.Init(_reader); - _out.Volume = _provider.Volume; + try + { + _out.Volume = (float)SaveSystem.CurrentSave.SfxVolume / 100; + } + catch + { + } _out.Play(); _out.PlaybackStopped += (o, a) => { PlayCompleted?.Invoke(); }; } |
