sounds: Add a tune to play for when the time-out is reached.
authorsjlongland <sjlongland@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 6 Oct 2015 10:03:55 +0000 (10:03 +0000)
committersjlongland <sjlongland@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 6 Oct 2015 10:03:55 +0000 (10:03 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@2424 01035d8c-6547-0410-b346-abe4f91aad63

codec2-dev/stm32/inc/sounds.h
codec2-dev/stm32/src/sounds.c

index 90581c2ca897d100a4d49ecb688e1e298a08b74f..9ccfeb733754918d8cec5bc9c68c2b5e21b28810 100644 (file)
@@ -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
index 1ebeeb96b0bc4670328945ed504f42570db7fa53..54848b861a8e404115d2acae7a51786cf0a14f99 100644 (file)
@@ -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},
+};