From 85a16ea99a5ff00faec81bb018ca4ad74b65406d Mon Sep 17 00:00:00 2001 From: sjlongland Date: Tue, 6 Oct 2015 10:03:55 +0000 Subject: [PATCH] sounds: Add a tune to play for when the time-out is reached. git-svn-id: https://svn.code.sf.net/p/freetel/code@2424 01035d8c-6547-0410-b346-abe4f91aad63 --- codec2-dev/stm32/inc/sounds.h | 3 +++ codec2-dev/stm32/src/sounds.c | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/codec2-dev/stm32/inc/sounds.h b/codec2-dev/stm32/inc/sounds.h index 90581c2c..9ccfeb73 100644 --- a/codec2-dev/stm32/inc/sounds.h +++ b/codec2-dev/stm32/inc/sounds.h @@ -32,4 +32,7 @@ extern const struct sfx_note_t sound_returned[]; /*! Click sound */ extern const struct sfx_note_t sound_click[]; +/*! Death march tune */ +extern const struct sfx_note_t sound_death_march[]; + #endif diff --git a/codec2-dev/stm32/src/sounds.c b/codec2-dev/stm32/src/sounds.c index 1ebeeb96..54848b86 100644 --- a/codec2-dev/stm32/src/sounds.c +++ b/codec2-dev/stm32/src/sounds.c @@ -39,3 +39,24 @@ const struct sfx_note_t sound_click[] = { {.freq = 1200, .duration = 10}, {.freq = 0, .duration = 0} }; + +const struct sfx_note_t sound_death_march[] = { + {.freq = 340, .duration = 400}, + {.freq = 0, .duration = 80}, + {.freq = 340, .duration = 400}, + {.freq = 0, .duration = 80}, + {.freq = 340, .duration = 400}, + {.freq = 0, .duration = 80}, + {.freq = 420, .duration = 400}, + {.freq = 0, .duration = 80}, + {.freq = 400, .duration = 300}, + {.freq = 0, .duration = 80}, + {.freq = 340, .duration = 120}, + {.freq = 0, .duration = 80}, + {.freq = 340, .duration = 120}, + {.freq = 0, .duration = 80}, + {.freq = 300, .duration = 200}, + {.freq = 0, .duration = 80}, + {.freq = 340, .duration = 400}, + {.freq = 0, .duration = 0}, +}; -- 2.25.1