aboutsummaryrefslogtreecommitdiff
path: root/stm32/src/sounds.c
blob: 54848b861a8e404115d2acae7a51786cf0a14f99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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},
};