summaryrefslogtreecommitdiff
path: root/quantum/audio.h
diff options
context:
space:
mode:
authorPeter Eichinger <peter.eichinger@gmail.com>2016-01-25 17:46:50 +0100
committerPeter Eichinger <peter.eichinger@gmail.com>2016-01-25 17:46:50 +0100
commit78192791bc0bb98d7a469f88a77febb3250c5b93 (patch)
treec20d43cfa5cc4980f8dcf967832e8c913bb84bbe /quantum/audio.h
parentc5f90eb99b282c7425e151b82f0ca22969a4a275 (diff)
parente9356dcad5769bc917ab9d3366013b5f193c3ef3 (diff)
Merge branch 'master' into flicker-fix
Diffstat (limited to 'quantum/audio.h')
-rw-r--r--quantum/audio.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/quantum/audio.h b/quantum/audio.h
new file mode 100644
index 0000000000..99203cea7a
--- /dev/null
+++ b/quantum/audio.h
@@ -0,0 +1,11 @@
+#include <stdint.h>
+#include <stdbool.h>
+#include <avr/io.h>
+#include <util/delay.h>
+
+void play_sample(uint8_t * s, uint16_t l, bool r);
+void play_note(double freq, int vol);
+void stop_note(double freq);
+void stop_all_notes();
+void init_notes();
+void play_notes(float (*np)[][2], uint8_t n_length, bool n_repeat); \ No newline at end of file