[banshee] gst#: Fix volume



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

    gst#: Fix volume
    
    Signed-off-by: Bertrand Lorentz <bertrand lorentz gmail com>

 .../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 2f7bab1..315d96d 100644
--- a/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/PlayerEngine.cs
+++ b/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/PlayerEngine.cs
@@ -739,7 +739,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]