Make functions const again
This commit is contained in:
parent
36cb7c82f3
commit
b6807ee3ca
|
@ -199,7 +199,7 @@ float Pinetime::Controllers::MusicService::getPlaybackSpeed() const {
|
|||
return playbackSpeed;
|
||||
}
|
||||
|
||||
int Pinetime::Controllers::MusicService::getProgress() {
|
||||
int Pinetime::Controllers::MusicService::getProgress() const {
|
||||
if (isPlaying()) {
|
||||
return trackProgress + static_cast<int>((static_cast<float>(xTaskGetTickCount() - trackProgressUpdateTime) / 1024.0f) * getPlaybackSpeed());
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ namespace Pinetime {
|
|||
|
||||
std::string getAlbum() const;
|
||||
|
||||
int getProgress();
|
||||
int getProgress() const;
|
||||
|
||||
int getTrackLength() const;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user