mark get_track_progress_ms as const

This commit is contained in:
Kevin Ahrendt
2026-04-24 08:43:06 -04:00
parent 42f0b1a7e2
commit 52eeb52d0e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -179,7 +179,7 @@ void SendspinHub::on_metadata(const sendspin::ServerMetadataStateObject &metadat
}
// THREAD CONTEXT: Main loop (invoked from Sendspin components)
uint32_t SendspinHub::get_track_progress_ms() {
uint32_t SendspinHub::get_track_progress_ms() const {
if (this->is_ready()) {
return this->metadata_role_->get_track_progress_ms();
}
+1 -1
View File
@@ -134,7 +134,7 @@ class SendspinHub final : public Component,
}
/// @brief Returns the interpolated track progress in milliseconds, or 0 if the hub is not yet ready.
uint32_t get_track_progress_ms();
uint32_t get_track_progress_ms() const;
#endif
#ifdef USE_SENDSPIN_PLAYER