Update to enable different sound event for trim centres, and trim end points.
This commit is contained in:
+5
-2
@@ -117,8 +117,8 @@ inline uint8_t audioQueue::getToneLength(uint8_t tLen)
|
||||
}
|
||||
|
||||
void audioQueue::pause(uint8_t tLen)
|
||||
{
|
||||
play(0, tLen, 5); // a pause
|
||||
{
|
||||
play(0, tLen, 5); // a pause
|
||||
}
|
||||
|
||||
void audioQueue::play(uint8_t tFreq, uint8_t tLen, uint8_t tPause,
|
||||
@@ -209,6 +209,9 @@ void audioQueue::event(uint8_t e, uint8_t f)
|
||||
case AU_TRIM_MIDDLE:
|
||||
play(f, 10, 2, PLAY_NOW);
|
||||
break;
|
||||
case AU_TRIM_END:
|
||||
play(f, 10, 2, PLAY_NOW);
|
||||
break;
|
||||
// warning one
|
||||
case AU_WARNING1:
|
||||
play(BEEP_DEFAULT_FREQ, 10, 1, PLAY_NOW);
|
||||
|
||||
Reference in New Issue
Block a user