From a898f08c08524f4443d681543ee2abc60d8a5de1 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Sat, 17 Sep 2011 09:38:12 +0000 Subject: [PATCH] Fixed that the "SetVolume 100" bang didn't work with Winamp. --- Plugins/PluginNowPlaying/Player.h | 2 +- Plugins/PluginNowPlaying/PlayerWinamp.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/PluginNowPlaying/Player.h b/Plugins/PluginNowPlaying/Player.h index e71111e7..9106ecba 100644 --- a/Plugins/PluginNowPlaying/Player.h +++ b/Plugins/PluginNowPlaying/Player.h @@ -60,7 +60,7 @@ public: void AddInstance(); void RemoveInstance(); void UpdateMeasure(); - virtual void AddMeasure(INT type); + void AddMeasure(INT type); virtual void UpdateData() = 0; bool IsInitialized() { return m_Initialized; } diff --git a/Plugins/PluginNowPlaying/PlayerWinamp.cpp b/Plugins/PluginNowPlaying/PlayerWinamp.cpp index 16c06358..a86b7a14 100644 --- a/Plugins/PluginNowPlaying/PlayerWinamp.cpp +++ b/Plugins/PluginNowPlaying/PlayerWinamp.cpp @@ -417,7 +417,7 @@ void CPlayerWinamp::SetRating(int rating) */ void CPlayerWinamp::SetVolume(int volume) { - if (volume) ++volume; // For proper scaling + if (volume > 0 && volume < 100) ++volume; // For proper scaling // Winamp accepts volume in 0 - 255 range volume *= 255;