summaryrefslogtreecommitdiff
path: root/src/audio/tracker.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio/tracker.h')
-rw-r--r--src/audio/tracker.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/audio/tracker.h b/src/audio/tracker.h
index f471bd8..a96a801 100644
--- a/src/audio/tracker.h
+++ b/src/audio/tracker.h
@@ -7,6 +7,8 @@
#include "generated/assets.h"
#include <cstdint>
+class SpectrogramResourceManager;
+
struct TrackerEvent {
float unit_time; // Unit-less time within pattern (0.0 to pattern.unit_length)
uint16_t sample_id;
@@ -44,6 +46,8 @@ extern const TrackerPattern g_tracker_patterns[];
extern const uint32_t g_tracker_patterns_count;
extern const TrackerScore g_tracker_score;
-void tracker_init();
+// Initialize tracker. If resource_mgr is provided, spectrograms are loaded
+// through it (unified ownership). If nullptr, tracker manages its own storage.
+void tracker_init(SpectrogramResourceManager* resource_mgr = nullptr);
void tracker_update(double music_time_sec, double dt_music_sec);
void tracker_reset(); // Reset tracker state (for tests/seeking)