Update to enable different sound event for trim centres, and trim end points.

This commit is contained in:
rob@marotori.com
2012-07-02 16:55:06 +00:00
parent 190aafa1ef
commit 6636bf90c8
7 changed files with 23 additions and 6 deletions
+5
View File
@@ -45,6 +45,7 @@ const char * audioFilenames[] = {
"warning2",
"warning3",
"midtrim",
"endtrim",
"tada",
"midpot",
"mixwarn1",
@@ -380,6 +381,10 @@ void audioEvent(uint8_t e, uint8_t f)
case AU_TRIM_MIDDLE:
play(f, 20, 4, PLAY_NOW);
break;
// trim center
case AU_TRIM_END:
play(f, 20, 4, PLAY_NOW);
break;
// warning one
case AU_WARNING1:
play(BEEP_DEFAULT_FREQ, 20, 2, PLAY_NOW);
+1
View File
@@ -98,6 +98,7 @@ void audioEvent(uint8_t e, uint8_t f=BEEP_DEFAULT_FREQ);
#define AUDIO_VARIO_UP() audioEvent(AU_KEYPAD_UP)
#define AUDIO_VARIO_DOWN() audioEvent(AU_KEYPAD_DOWN)
#define AUDIO_TRIM_MIDDLE(f) audioEvent(AU_TRIM_MIDDLE, f)
#define AUDIO_TRIM_END(f) audioEvent(AU_TRIM_END, f)
#define AUDIO_TRIM(event, f) audioEvent(AU_TRIM_MOVE, f)
#define AUDIO_PLAY(p) audioEvent(p)
#define AUDIO_VARIO(f, t) play(f, t, 0, PLAY_SOUND_VARIO)