~ruther/qmk_firmware

ref: aee8715815544b076c123d4ed55c76e23a7e54d0 qmk_firmware/quantum/audio.h -rw-r--r-- 313 bytes
aee87158 — Stephan Bösebeck Merge branch 'master' of https://github.com/jackhumbert/qmk_firmware 9 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
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);