NowPlaying.dll:

- Fixed that album name and cover were not always displayed with Winamp due to r1018
- Shuffle and repeat state is now rechecked on track change with iTunes
- Improved performance when reading file tags/cover
- Updated iTunes SDK files
This commit is contained in:
Birunthan Mohanathas
2011-11-10 12:09:50 +00:00
parent 8cb0a041e0
commit f84491ec83
9 changed files with 121 additions and 42 deletions

View File

@ -407,31 +407,31 @@ LPCTSTR GetString(UINT id, UINT flags)
return buffer;
case MEASURE_PROGRESS:
_itow(player->GetDuration() ? ((player->GetPosition() * 100) / player->GetDuration()) : 0, buffer, 10);
_itow_s(player->GetDuration() ? ((player->GetPosition() * 100) / player->GetDuration()) : 0, buffer, 10);
return buffer;
case MEASURE_RATING:
_itow(player->GetRating(), buffer, 10);
_itow_s(player->GetRating(), buffer, 10);
return buffer;
case MEASURE_VOLUME:
_itow(player->GetVolume(), buffer, 10);
_itow_s(player->GetVolume(), buffer, 10);
return buffer;
case MEASURE_STATE:
_itow(player->GetState(), buffer, 10);
_itow_s(player->GetState(), buffer, 10);
return buffer;
case MEASURE_STATUS:
_itow((int)player->IsInitialized(), buffer, 10);
_itow_s((int)player->IsInitialized(), buffer, 10);
return buffer;
case MEASURE_SHUFFLE:
_itow((int)player->GetShuffle(), buffer, 10);
_itow_s((int)player->GetShuffle(), buffer, 10);
return buffer;
case MEASURE_REPEAT:
_itow((int)player->GetRepeat(), buffer, 10);
_itow_s((int)player->GetRepeat(), buffer, 10);
return buffer;
}
}
@ -440,7 +440,7 @@ LPCTSTR GetString(UINT id, UINT flags)
return L"Error: Invalid player name";
}
return L"";
return NULL;
}
/*