This commit is contained in:
2026-03-07 08:51:50 +01:00
parent 4f3fbff258
commit f85143d7e5
60 changed files with 3245 additions and 1205 deletions

38
firmware/include/audio.h Normal file
View File

@@ -0,0 +1,38 @@
#ifndef AUDIO_H
#define AUDIO_H
/**
* @brief Initializes the audio subsystem
*
* @return 0 on success, negative error code on failure
*/
int audio_init(void);
/**
* @brief Plays an audio file from the filesystem
*
* @param filename The path to the audio file to play
*/
void audio_play(const char *filename);
/**
* @brief Stops the currently playing audio
*/
void audio_stop(void);
/**
* @brief Signals the audio thread that the system is fully booted
*/
void audio_system_ready(void);
/**
* @brief Refreshes the count of available audio files
*/
void audio_refresh_file_count(void);
/**
* @brief Puts the QSPI flash into deep sleep mode to save power
*/
void flash_deep_sleep(void);
#endif // AUDIO_H