diff options
author | Bad Diode <bd@badd10de.dev> | 2024-01-15 10:17:58 +0100 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2024-01-15 10:17:58 +0100 |
commit | e8f4708a6d809c33719ec2f773d23e05c8619b2b (patch) | |
tree | 5ab02aef007e060c34ead52d4fe68f8ccf200c37 | |
parent | be37f274be067e92f9240112b7a047b8ef9e09b0 (diff) | |
download | stepper-e8f4708a6d809c33719ec2f773d23e05c8619b2b.tar.gz stepper-e8f4708a6d809c33719ec2f773d23e05c8619b2b.zip |
Fix bug when sound would not be stopped in link mode when toggling
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | src/main.c | 1 | ||||
-rw-r--r-- | src/sequencer.c | 1 |
3 files changed, 3 insertions, 1 deletions
@@ -27,7 +27,7 @@ INC_FLAGS := $(addprefix -I,$(INC_DIRS)) | |||
27 | INC_FLAGS += -I$(LIBGBA_SRC) | 27 | INC_FLAGS += -I$(LIBGBA_SRC) |
28 | 28 | ||
29 | # Output library names and executables. | 29 | # Output library names and executables. |
30 | TARGET := STEPPER-v1.8-dev-08 | 30 | TARGET := STEPPER-v1.8-dev-09 |
31 | ELF := $(BUILD_DIR)/$(TARGET).elf | 31 | ELF := $(BUILD_DIR)/$(TARGET).elf |
32 | BIN := $(BUILD_DIR)/$(TARGET).gba | 32 | BIN := $(BUILD_DIR)/$(TARGET).gba |
33 | 33 | ||
@@ -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 | ||