diff options
author | Jack Humbert <jack.humb@gmail.com> | 2016-01-23 20:37:00 -0500 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2016-01-23 20:37:00 -0500 |
commit | 9a1ae948c9e19d3153512c196801a969c9637732 (patch) | |
tree | 948641e82788ee298468da9090749f79ad765c00 /quantum/audio.h | |
parent | e5aee62e54d0b6f02ff170f4e9bf1e738d36fb4c (diff) | |
parent | ae620fe8562254a5c00a48b863cabd4c87abd613 (diff) |
Merge pull request #104 from jackhumbert/smarkefile
Rework Planck file structure
Diffstat (limited to 'quantum/audio.h')
-rw-r--r-- | quantum/audio.h | 11 |
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 |