diff options
author | IBNobody <[email protected]> | 2016-05-03 12:56:40 -0500 |
---|---|---|
committer | Jack Humbert <[email protected]> | 2016-05-03 13:56:40 -0400 |
commit | 83e1cc241e3aabd69f6cdcd2581477d4b85bb8d3 (patch) | |
tree | fd0c9714f93e1afec478ddc42a86a6823136ad5f /quantum/audio/audio.h | |
parent | 2c070163ffffffde546fb00acaa2fbb96b93da64 (diff) | |
download | qmk_firmware-83e1cc241e3aabd69f6cdcd2581477d4b85bb8d3.tar.gz qmk_firmware-83e1cc241e3aabd69f6cdcd2581477d4b85bb8d3.zip |
Clarified audio.c (#302)
* Updated personal layouts
* tweaked personal
* Nightly - Audio Cleanup
Refactored the LUTs. Abstracted some of the registers out of audio to
use more functional names. Split audio into audio and audio_pwm. WIP
* nightly - collapsed code
* Added check for note playing to LEDs
Diffstat (limited to 'quantum/audio/audio.h')
-rw-r--r-- | quantum/audio/audio.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/quantum/audio/audio.h b/quantum/audio/audio.h index 89769507e1..3d706587ab 100644 --- a/quantum/audio/audio.h +++ b/quantum/audio/audio.h @@ -56,7 +56,7 @@ void increase_polyphony_rate(float change); void decrease_polyphony_rate(float change); void set_timbre(float timbre); -void set_tempo(float tempo); +void set_tempo(uint8_t tempo); void increase_tempo(uint8_t tempo_change); void decrease_tempo(uint8_t tempo_change); @@ -83,7 +83,11 @@ void play_notes(float (*np)[][2], uint16_t n_count, bool n_repeat, float n_rest) #define NOTE_ARRAY_SIZE(x) ((int16_t)(sizeof(x) / (sizeof(x[0])))) #define PLAY_NOTE_ARRAY(note_array, note_repeat, note_rest_style) play_notes(¬e_array, NOTE_ARRAY_SIZE((note_array)), (note_repeat), (note_rest_style)); + +bool is_playing_notes(void); void play_goodbye_tone(void); void play_startup_tone(void); + + #endif
\ No newline at end of file |