diff options
| author | sowgro <tpoke.ferrari@gmail.com> | 2025-12-12 00:25:31 -0500 |
|---|---|---|
| committer | sowgro <tpoke.ferrari@gmail.com> | 2025-12-12 00:25:31 -0500 |
| commit | 2fe47fb3bd700acebf07cd777e3a1ecb49fb9f46 (patch) | |
| tree | 53a470470b92acbc417de577f12ebf68dfbcd17a /project/Core/Inc/Project/player.h | |
| parent | 29f69b5b7831c846cea1f61a7de4920fafa97ede (diff) | |
| download | 340-repo-Sowgro-2fe47fb3bd700acebf07cd777e3a1ecb49fb9f46.tar.gz 340-repo-Sowgro-2fe47fb3bd700acebf07cd777e3a1ecb49fb9f46.tar.bz2 340-repo-Sowgro-2fe47fb3bd700acebf07cd777e3a1ecb49fb9f46.zip | |
reduce warnings, try to get passive speaker to work
Diffstat (limited to '')
| -rw-r--r-- | project/Core/Inc/Project/player.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/project/Core/Inc/Project/player.h b/project/Core/Inc/Project/player.h new file mode 100644 index 0000000..23853cb --- /dev/null +++ b/project/Core/Inc/Project/player.h @@ -0,0 +1,24 @@ +/* + * player.h + * + * Created on: Dec 10, 2025 + * Author: sowgro + */ + +#ifndef INC_PROJECT_PLAYER_H_ +#define INC_PROJECT_PLAYER_H_ + +typedef struct { + uint8_t ev_type; + uint32_t abs_time; + uint8_t key_number; + uint8_t value; +} note_event_t; + +note_event_t NULL_EVENT = {10, 0, 0, 0}; + +void parse_song(uint8_t *p_song); + +uint8_t *parse_track(uint8_t *p_song, note_event_t *events); + +#endif /* INC_PROJECT_PLAYER_H_ */ |
