From e8f4708a6d809c33719ec2f773d23e05c8619b2b Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Mon, 15 Jan 2024 10:17:58 +0100 Subject: Fix bug when sound would not be stopped in link mode when toggling --- Makefile | 2 +- src/main.c | 1 + src/sequencer.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 144c978..4686168 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ INC_FLAGS := $(addprefix -I,$(INC_DIRS)) INC_FLAGS += -I$(LIBGBA_SRC) # Output library names and executables. -TARGET := STEPPER-v1.8-dev-08 +TARGET := STEPPER-v1.8-dev-09 ELF := $(BUILD_DIR)/$(TARGET).elf BIN := $(BUILD_DIR)/$(TARGET).gba diff --git a/src/main.c b/src/main.c index 6b7619f..5e18396 100644 --- a/src/main.c +++ b/src/main.c @@ -26,6 +26,7 @@ WITH REGARD TO THIS SOFTWARE. // + Allow using B + dpad to nudge trigs. This will potentially mean switching // + Hold L/R retriggers at short intervals? // to key release to enable trigs. +// + Fix bug with not being able to stop the sound when synced // - Fix any bugs we currently have // - Add an envelope to ch3, would need to work with a timer in order to make // it work I think (Can reuse the 96bpq sequencer timer for this). diff --git a/src/sequencer.c b/src/sequencer.c index 3433da1..981bbc6 100644 --- a/src/sequencer.c +++ b/src/sequencer.c @@ -577,6 +577,7 @@ toggle_playing(void) { settings.sync == SYNC_IN_LINK_24BPQ || settings.sync == SYNC_IN_LINK_12BPQ || settings.sync == SYNC_IN_LINK_4BPQ) { + stop_sound(); return; } -- cgit v1.2.1