[banshee/gst#] [gst#] Fix volume



commit 8705651e25f3bba63429978c803df3b9e12daf06
Author: Olivier Dufour <olivier duff gmail com>
Date:   Sun Jun 19 00:25:03 2011 +0200

    [gst#] Fix volume

 .../Banshee.GStreamerSharp/PlayerEngine.cs         |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/PlayerEngine.cs b/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/PlayerEngine.cs
index 334c418..0ad61df 100644
--- a/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/PlayerEngine.cs
+++ b/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/PlayerEngine.cs
@@ -735,7 +735,7 @@ namespace Banshee.GStreamerSharp
         public override ushort Volume {
             get { return (ushort) Math.Round (audio_sink.Volume * 100.0); }
             set {
-                double volume = Math.Min (1.0, Math.Max (0, value / 100.0));
+                double volume = ((double)value) / 100.0;
                 audio_sink.Volume = volume;
                 if (audio_sink.VolumeNeedsSaving) {
                     PlayerEngineService.VolumeSchema.Set (value);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]