Trims audio little change

This commit is contained in:
bsongis
2012-05-04 22:18:34 +00:00
parent 9d6efd2dbd
commit 3708915dc8
6 changed files with 14 additions and 12 deletions
+5 -4
View File
@@ -150,6 +150,10 @@ void audioQueue::play(uint8_t tFreq, uint8_t tLen, uint8_t tPause,
void audioQueue::event(uint8_t e, uint8_t f)
{
#ifdef HAPTIC
haptic.event(e); //do this before audio to help sync timings
#endif
if (g_eeGeneral.flashBeep && (e <= AU_ERROR || e >= AU_WARNING1))
g_LightOffCounter = FLASH_DURATION;
@@ -189,7 +193,7 @@ void audioQueue::event(uint8_t e, uint8_t f)
break;
// trim center
case AU_TRIM_MIDDLE:
play(BEEP_DEFAULT_FREQ, 10, 2, PLAY_NOW);
play(f, 10, 2, PLAY_NOW);
break;
// warning one
case AU_WARNING1:
@@ -301,8 +305,5 @@ void audioQueue::event(uint8_t e, uint8_t f)
void audioDefevent(uint8_t e)
{
#ifdef HAPTIC
haptic.event(e); //do this before audio to help sync timings
#endif
audio.event(e);
}