diff options
Diffstat (limited to 'quantum/audio/voices.h')
-rw-r--r-- | quantum/audio/voices.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/quantum/audio/voices.h b/quantum/audio/voices.h index 0c45b0720..abafa2b40 100644 --- a/quantum/audio/voices.h +++ b/quantum/audio/voices.h | |||
@@ -13,6 +13,9 @@ | |||
13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | |||
17 | #pragma once | ||
18 | |||
16 | #include <stdint.h> | 19 | #include <stdint.h> |
17 | #include <stdbool.h> | 20 | #include <stdbool.h> |
18 | #if defined(__AVR__) | 21 | #if defined(__AVR__) |
@@ -21,14 +24,11 @@ | |||
21 | #include "wait.h" | 24 | #include "wait.h" |
22 | #include "luts.h" | 25 | #include "luts.h" |
23 | 26 | ||
24 | #ifndef VOICES_H | ||
25 | # define VOICES_H | ||
26 | |||
27 | float voice_envelope(float frequency); | 27 | float voice_envelope(float frequency); |
28 | 28 | ||
29 | typedef enum { | 29 | typedef enum { |
30 | default_voice, | 30 | default_voice, |
31 | # ifdef AUDIO_VOICES | 31 | #ifdef AUDIO_VOICES |
32 | something, | 32 | something, |
33 | drums, | 33 | drums, |
34 | butts_fader, | 34 | butts_fader, |
@@ -41,12 +41,10 @@ typedef enum { | |||
41 | // duty_fourth_down, | 41 | // duty_fourth_down, |
42 | // duty_third_down, | 42 | // duty_third_down, |
43 | // duty_fifth_third_down, | 43 | // duty_fifth_third_down, |
44 | # endif | 44 | #endif |
45 | number_of_voices // important that this is last | 45 | number_of_voices // important that this is last |
46 | } voice_type; | 46 | } voice_type; |
47 | 47 | ||
48 | void set_voice(voice_type v); | 48 | void set_voice(voice_type v); |
49 | void voice_iterate(void); | 49 | void voice_iterate(void); |
50 | void voice_deiterate(void); | 50 | void voice_deiterate(void); |
51 | |||
52 | #endif | ||