audio.h 313 B

1234567891011
  1. #include <stdint.h>
  2. #include <stdbool.h>
  3. #include <avr/io.h>
  4. #include <util/delay.h>
  5. void play_sample(uint8_t * s, uint16_t l, bool r);
  6. void play_note(double freq, int vol);
  7. void stop_note(double freq);
  8. void stop_all_notes();
  9. void init_notes();
  10. void play_notes(float (*np)[][2], uint8_t n_length, bool n_repeat);