mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Fixed that the "SetVolume 100" bang didn't work with Winamp.
This commit is contained in:
parent
f887245a50
commit
a898f08c08
@ -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; }
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user