[banshee: 5/7] [Banshee.MediaEngine] Don't set volume on each track start.



commit 71e4ddac4d1c102a4569968e34f499c048264121
Author: Christopher James Halse Rogers <chrishr src gnome org>
Date:   Sun Mar 14 17:15:17 2010 +1100

    [Banshee.MediaEngine] Don't set volume on each track start.
    
    We can rely on the PlayerEngine to set its volume correctly on start up,
    and when the volume is changed PlayerEngineService sets the volume of all
    PlayerEngines.  There's no need to additionally set the volume on each track
    start.

 .../Banshee.MediaEngine/PlayerEngineService.cs     |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.MediaEngine/PlayerEngineService.cs b/src/Core/Banshee.Services/Banshee.MediaEngine/PlayerEngineService.cs
index 1d46a58..7a32975 100644
--- a/src/Core/Banshee.Services/Banshee.MediaEngine/PlayerEngineService.cs
+++ b/src/Core/Banshee.Services/Banshee.MediaEngine/PlayerEngineService.cs
@@ -196,7 +196,6 @@ namespace Banshee.MediaEngine
         private void HandleStateChange (PlayerEventStateChangeArgs args)
         {
             if (args.Current == PlayerState.Loaded && CurrentTrack != null) {
-                active_engine.Volume = (ushort) VolumeSchema.Get ();
                 MetadataService.Instance.Lookup (CurrentTrack);
             } else if (args.Current == PlayerState.Ready) {
                 // Enable our preferred equalizer if it exists and was enabled last time.



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