mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-20 12:15:06 +00:00
audio fixes
This commit is contained in:
parent
5a15c113d7
commit
89a78f4a11
1 changed files with 2 additions and 2 deletions
|
@ -351,7 +351,7 @@ void play_notes(float (*np)[][2], uint8_t n_count, bool n_repeat, float n_rest)
|
||||||
|
|
||||||
if (audio_config.enable) {
|
if (audio_config.enable) {
|
||||||
|
|
||||||
if (note || notes)
|
if (note)
|
||||||
stop_all_notes();
|
stop_all_notes();
|
||||||
notes = true;
|
notes = true;
|
||||||
|
|
||||||
|
@ -406,7 +406,7 @@ void play_note(double freq, int vol) {
|
||||||
|
|
||||||
if (audio_config.enable && voices < 8) {
|
if (audio_config.enable && voices < 8) {
|
||||||
|
|
||||||
if (note || notes)
|
if (notes)
|
||||||
stop_all_notes();
|
stop_all_notes();
|
||||||
note = true;
|
note = true;
|
||||||
#ifdef PWM_AUDIO
|
#ifdef PWM_AUDIO
|
||||||
|
|
Loading…
Reference in a new issue