fixed small bug with AUDIO_ENABLED (#339)

daktil_thumb_popravljen
purpleP 2016-05-19 15:36:28 +03:00 committed by Jack Humbert
parent b732b79b49
commit 0275d444d7
1 changed files with 22 additions and 21 deletions

View File

@ -435,28 +435,29 @@ void matrix_scan_quantum() {
matrix_scan_kb();
}
#ifdef AUDIO_ENABLE
bool is_music_on(void) {
return (music_activated != 0);
}
bool is_music_on(void) {
return (music_activated != 0);
}
void music_toggle(void) {
if (!music_activated) {
music_on();
} else {
music_off();
}
}
void music_toggle(void) {
if (!music_activated) {
music_on();
} else {
music_off();
}
}
void music_on(void) {
music_activated = 1;
music_on_user();
}
void music_on(void) {
music_activated = 1;
music_on_user();
}
void music_off(void) {
music_activated = 0;
stop_all_notes();
}
void music_off(void) {
music_activated = 0;
stop_all_notes();
}
#endif
__attribute__ ((weak))
void music_on_user() {}