summaryrefslogtreecommitdiff
path: root/project/Core/Inc
diff options
context:
space:
mode:
Diffstat (limited to 'project/Core/Inc')
-rw-r--r--project/Core/Inc/Project/player.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/project/Core/Inc/Project/player.h b/project/Core/Inc/Project/player.h
index 23853cb..1b1d308 100644
--- a/project/Core/Inc/Project/player.h
+++ b/project/Core/Inc/Project/player.h
@@ -15,10 +15,16 @@ typedef struct {
uint8_t value;
} note_event_t;
-note_event_t NULL_EVENT = {10, 0, 0, 0};
+typedef struct {
+ note_event_t events[1024];
+ int nEvents;
+ int curEventIndex;
+} track_t;
+
+void play_notes(int count);
void parse_song(uint8_t *p_song);
-uint8_t *parse_track(uint8_t *p_song, note_event_t *events);
+uint8_t *parse_track(uint8_t *p_song, track_t *track);
#endif /* INC_PROJECT_PLAYER_H_ */