diff -r 37c16056c45b -r 70e93b0bd778 src/FingersDance.Control.Player/UserControlPlayer.xaml.cs --- a/src/FingersDance.Control.Player/UserControlPlayer.xaml.cs Fri Nov 13 22:11:50 2009 +0100 +++ b/src/FingersDance.Control.Player/UserControlPlayer.xaml.cs Fri Nov 13 23:22:00 2009 +0100 @@ -106,9 +106,9 @@ public void setSound(double val) { - if (((MediaElementVideo.Volume + val) < 1) && ((MediaElementVideo.Volume + val) > 0)) - MediaElementVideo.Volume += val; - else if ((MediaElementVideo.Volume + val) > 1) + if ((val < 1) && (val > 0)) + MediaElementVideo.Volume = val; + else if (val > 1) MediaElementVideo.Volume = 1; else MediaElementVideo.Volume = 0;