From 90802ccb5599ef2af0f1529fd7cbfeaef177b58d Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 29 Jan 2017 20:45:32 -0500 Subject: Fix some crashes and UI bugs Audio manager crashed after loading a second song Color Picker and ArtPad palette entries were not appearing properly. Fonts in Shifter could not have decimal sizes. --- ShiftOS_TheReturn/AudioManager.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ShiftOS_TheReturn') diff --git a/ShiftOS_TheReturn/AudioManager.cs b/ShiftOS_TheReturn/AudioManager.cs index 7d01a52..4f90d76 100644 --- a/ShiftOS_TheReturn/AudioManager.cs +++ b/ShiftOS_TheReturn/AudioManager.cs @@ -45,6 +45,8 @@ namespace ShiftOS.Engine { Thread.Sleep(5000); //even when the player isn't playing, this will give a good delay between songs. } + _reader.Dispose(); + _out.Dispose(); } }); t.IsBackground = true; @@ -56,6 +58,8 @@ namespace ShiftOS.Engine _provider.Volume = volume; //persist between songs _out.Volume = volume; } + + } public interface IAudioProvider -- cgit v1.2.3