audio_prompt.h 506 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #ifdef __cplusplus
  3. extern "C" {
  4. #endif
  5. typedef enum {
  6. PROMPT_BT_CONNECTED,
  7. PROMPT_BT_DISCONNECTED,
  8. PROMPT_LOW_BATTERY,
  9. } prompt_id_t;
  10. /**
  11. * @brief Initialize the audio prompt module.
  12. */
  13. void audio_prompt_init(void);
  14. /**
  15. * @brief Play a system prompt tone. This call is blocking and will interrupt
  16. * current audio playback (via taking the audio output mutex).
  17. *
  18. * @param id The prompt tone to play
  19. */
  20. void audio_prompt_play(prompt_id_t id);
  21. #ifdef __cplusplus
  22. }
  23. #endif