aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2024-01-15 10:17:58 +0100
committerBad Diode <bd@badd10de.dev>2024-01-15 10:17:58 +0100
commite8f4708a6d809c33719ec2f773d23e05c8619b2b (patch)
tree5ab02aef007e060c34ead52d4fe68f8ccf200c37
parentbe37f274be067e92f9240112b7a047b8ef9e09b0 (diff)
downloadstepper-e8f4708a6d809c33719ec2f773d23e05c8619b2b.tar.gz
stepper-e8f4708a6d809c33719ec2f773d23e05c8619b2b.zip
Fix bug when sound would not be stopped in link mode when toggling
-rw-r--r--Makefile2
-rw-r--r--src/main.c1
-rw-r--r--src/sequencer.c1
3 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 144c978..4686168 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,7 @@ INC_FLAGS := $(addprefix -I,$(INC_DIRS))
27INC_FLAGS += -I$(LIBGBA_SRC) 27INC_FLAGS += -I$(LIBGBA_SRC)
28 28
29# Output library names and executables. 29# Output library names and executables.
30TARGET := STEPPER-v1.8-dev-08 30TARGET := STEPPER-v1.8-dev-09
31ELF := $(BUILD_DIR)/$(TARGET).elf 31ELF := $(BUILD_DIR)/$(TARGET).elf
32BIN := $(BUILD_DIR)/$(TARGET).gba 32BIN := $(BUILD_DIR)/$(TARGET).gba
33 33
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.
26// + Allow using B + dpad to nudge trigs. This will potentially mean switching 26// + Allow using B + dpad to nudge trigs. This will potentially mean switching
27// + Hold L/R retriggers at short intervals? 27// + Hold L/R retriggers at short intervals?
28// to key release to enable trigs. 28// to key release to enable trigs.
29// + Fix bug with not being able to stop the sound when synced
29// - Fix any bugs we currently have 30// - Fix any bugs we currently have
30// - Add an envelope to ch3, would need to work with a timer in order to make 31// - Add an envelope to ch3, would need to work with a timer in order to make
31// it work I think (Can reuse the 96bpq sequencer timer for this). 32// 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) {
577 settings.sync == SYNC_IN_LINK_24BPQ || 577 settings.sync == SYNC_IN_LINK_24BPQ ||
578 settings.sync == SYNC_IN_LINK_12BPQ || 578 settings.sync == SYNC_IN_LINK_12BPQ ||
579 settings.sync == SYNC_IN_LINK_4BPQ) { 579 settings.sync == SYNC_IN_LINK_4BPQ) {
580 stop_sound();
580 return; 581 return;
581 } 582 }
582 583