sound.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef SOUND_H
  2. #define SOUND_H
  3. #define MSG_SOUND_MODE_LOUD "Sound [loud]"
  4. #define MSG_SOUND_MODE_ONCE "Sound [once]"
  5. #define MSG_SOUND_MODE_SILENT "Sound [silent]"
  6. #define MSG_SOUND_MODE_MUTE "Sound [mute]"
  7. #define e_SOUND_MODE_NULL 0xFF
  8. typedef enum
  9. {e_SOUND_MODE_LOUD,e_SOUND_MODE_ONCE,e_SOUND_MODE_SILENT,e_SOUND_MODE_MUTE} eSOUND_MODE;
  10. #define e_SOUND_MODE_DEFAULT e_SOUND_MODE_LOUD
  11. typedef enum
  12. {e_SOUND_TYPE_ButtonEcho,e_SOUND_TYPE_EncoderEcho,e_SOUND_TYPE_StandardPrompt,e_SOUND_TYPE_StandardConfirm,e_SOUND_TYPE_StandardWarning,e_SOUND_TYPE_StandardAlert} eSOUND_TYPE;
  13. typedef enum
  14. {e_SOUND_CLASS_Echo,e_SOUND_CLASS_Prompt,e_SOUND_CLASS_Confirm,e_SOUND_CLASS_Warning,e_SOUND_CLASS_Alert} eSOUND_CLASS;
  15. extern eSOUND_MODE eSoundMode;
  16. extern void Sound_Init(void);
  17. extern void Sound_Default(void);
  18. extern void Sound_Save(void);
  19. extern void Sound_CycleState(void);
  20. extern void Sound_MakeSound(eSOUND_TYPE eSoundType);
  21. //static void Sound_DoSound_Echo(void);
  22. //static void Sound_DoSound_Prompt(void);
  23. #endif // SOUND_H