Fixed that the "SetVolume 100" bang didn't work with Winamp.

This commit is contained in:
Birunthan Mohanathas 2011-09-17 09:38:12 +00:00
parent f887245a50
commit a898f08c08
2 changed files with 2 additions and 2 deletions

View File

@ -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; }

View File

@ -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;