50 #define SOUND_MANUAL_STOP (-1)
109 #define NOTE_C4 (261.63)
110 #define NOTE_CS4 (277.18)
111 #define NOTE_D4 (293.66)
112 #define NOTE_DS4 (311.13)
113 #define NOTE_E4 (329.63)
114 #define NOTE_F4 (349.23)
115 #define NOTE_FS4 (369.99)
116 #define NOTE_G4 (392.00)
117 #define NOTE_GS4 (415.30)
118 #define NOTE_A4 (440.00)
119 #define NOTE_AS4 (466.16)
120 #define NOTE_B4 (493.88)
121 #define NOTE_C5 (523.25)
122 #define NOTE_CS5 (554.37)
123 #define NOTE_D5 (587.33)
124 #define NOTE_DS5 (622.25)
125 #define NOTE_E5 (659.25)
126 #define NOTE_F5 (698.46)
127 #define NOTE_FS5 (739.99)
128 #define NOTE_G5 (783.99)
129 #define NOTE_GS5 (830.61)
130 #define NOTE_A5 (880.00)
131 #define NOTE_AS5 (932.33)
132 #define NOTE_B5 (987.77)
133 #define NOTE_C6 (1046.50)
134 #define NOTE_CS6 (1108.73)
135 #define NOTE_D6 (1174.66)
136 #define NOTE_DS6 (1244.51)
137 #define NOTE_E6 (1318.51)
138 #define NOTE_F6 (1396.91)
139 #define NOTE_FS6 (1479.98)
140 #define NOTE_G6 (1567.98)
141 #define NOTE_GS6 (1661.22)
142 #define NOTE_A6 (1760.00)
143 #define NOTE_AS6 (1864.66)
144 #define NOTE_B6 (1975.53)
145 #define NOTE_C6 (1046.50)
146 #define NOTE_CS6 (1108.73)
147 #define NOTE_D6 (1174.66)
148 #define NOTE_DS6 (1244.51)
149 #define NOTE_E6 (1318.51)
150 #define NOTE_F6 (1396.91)
151 #define NOTE_FS6 (1479.98)
152 #define NOTE_G6 (1567.98)
153 #define NOTE_GS6 (1661.22)
154 #define NOTE_A6 (1760.00)
155 #define NOTE_AS6 (1864.66)
156 #define NOTE_B6 (1975.53)
174 void ev3_power_off();
ER ev3_speaker_set_volume(uint8_t volume)
Set the volume level of speaker.
Definition: ev3api_speaker.c:12
ER ev3_speaker_play_tone(uint16_t frequency, int32_t duration)
Play a tone. Any sound being played will be stopped by calling this function.
Definition: ev3api_speaker.c:16
A memory file is a file stored in RAM rather than on the SD card.
Definition: ev3api_fs.h:31
ER ev3_speaker_stop()
The sound being played will be stopped by calling this function.
Definition: ev3api_speaker.c:25
ER ev3_speaker_play_file(const memfile_t *p_memfile, int32_t duration)
Play a WAV file stored in memory. Only 8-bit 8kHz mono WAV file is supported by now. Any sound being played will be stopped by calling this function.
Definition: ev3api_speaker.c:20