diff options
author | Ryan <fauxpark@gmail.com> | 2020-12-26 15:53:12 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-26 15:53:12 +1100 |
commit | 48f4768d33313e6a6ed48c31f95eb44feda10a51 (patch) | |
tree | 49944f8e0399fc661b9adbf7d8c0962995634579 /quantum/audio/voices.h | |
parent | 53eb7f0774881e8a9f6186a51e15135edc6f8575 (diff) |
Change include guards in quantum/ to pragma once (#11239)
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 0c45b0720e..abafa2b404 100644 --- a/quantum/audio/voices.h +++ b/quantum/audio/voices.h @@ -13,6 +13,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ + +#pragma once + #include <stdint.h> #include <stdbool.h> #if defined(__AVR__) @@ -21,14 +24,11 @@ #include "wait.h" #include "luts.h" -#ifndef VOICES_H -# define VOICES_H - float voice_envelope(float frequency); typedef enum { default_voice, -# ifdef AUDIO_VOICES +#ifdef AUDIO_VOICES something, drums, butts_fader, @@ -41,12 +41,10 @@ typedef enum { // duty_fourth_down, // duty_third_down, // duty_fifth_third_down, -# endif +#endif number_of_voices // important that this is last } voice_type; void set_voice(voice_type v); void voice_iterate(void); void voice_deiterate(void); - -#endif |