summaryrefslogtreecommitdiffstats
path: root/quantum/audio/voices.c
diff options
context:
space:
mode:
authorDamien <Dbroqua@users.noreply.github.com>2017-03-05 22:58:13 +0100
committerGitHub <noreply@github.com>2017-03-05 22:58:13 +0100
commit24ec8f509703cbaf9de7b41d251dbb7fcd339559 (patch)
tree90f4f9adf406d92c6817c412256904a97c716daf /quantum/audio/voices.c
parentb7b94bfb132aa5f2f79b587fcfa6b1197485db27 (diff)
parent615bfc4eca8204b73c592a076ca02aeaeceb7e1e (diff)
downloadqmk_firmware-24ec8f509703cbaf9de7b41d251dbb7fcd339559.tar.gz
qmk_firmware-24ec8f509703cbaf9de7b41d251dbb7fcd339559.tar.xz
Merge pull request #18 from qmk/master
Merge from qmk
Diffstat (limited to 'quantum/audio/voices.c')
-rw-r--r--quantum/audio/voices.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/quantum/audio/voices.c b/quantum/audio/voices.c
index 8326e91ea..c2edb75f0 100644
--- a/quantum/audio/voices.c
+++ b/quantum/audio/voices.c
@@ -24,6 +24,7 @@ void voice_deiterate() {
float voice_envelope(float frequency) {
// envelope_index ranges from 0 to 0xFFFF, which is preserved at 880.0 Hz
+ __attribute__ ((unused))
uint16_t compensated_index = (uint16_t)((float)envelope_index * (880.0 / frequency));
switch (voice) {