aboutsummaryrefslogtreecommitdiff
path: root/stm32/src/sounds.c
diff options
context:
space:
mode:
authorAuthor Name <[email protected]>2023-07-07 12:20:59 +0930
committerDavid Rowe <[email protected]>2023-07-07 12:29:06 +0930
commitac7c48b4dee99d4c772f133d70d8d1b38262fcd2 (patch)
treea2d0ace57a9c0e2e5b611c4987f6fed1b38b81e7 /stm32/src/sounds.c
shallow zip-file copy from codec2 e9d726bf20
Diffstat (limited to 'stm32/src/sounds.c')
-rw-r--r--stm32/src/sounds.c62
1 files changed, 62 insertions, 0 deletions
diff --git a/stm32/src/sounds.c b/stm32/src/sounds.c
new file mode 100644
index 0000000..54848b8
--- /dev/null
+++ b/stm32/src/sounds.c
@@ -0,0 +1,62 @@
+/*!
+ * Sound effect library.
+ *
+ * This provides some sound effects for the SM1000 UI.
+ *
+ * Author Stuart Longland <[email protected]>
+ * Copyright (C) 2015 FreeDV project.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License version 2.1,
+ * as published by the Free Software Foundation. This program is
+ * distributed in the hope that it will be useful, but WITHOUT ANY
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this program; if not, see
+ * <http://www.gnu.org/licenses/>.
+ */
+
+#include "sounds.h"
+
+const struct sfx_note_t sound_startup[] = {
+ {.freq = 600, .duration = 80},
+ {.freq = 800, .duration = 80},
+ {.freq = 1000, .duration = 80},
+ {.freq = 0, .duration = 0}
+};
+
+const struct sfx_note_t sound_returned[] = {
+ {.freq = 1000, .duration = 80},
+ {.freq = 800, .duration = 80},
+ {.freq = 600, .duration = 80},
+ {.freq = 0, .duration = 0}
+};
+
+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},
+};