SB: speaker control should only mute output and do not stop DMA

(fixes Scream Tracker 3)
This commit is contained in:
wbcbz7 committed 2026-03-19 18:28:07 +07:00
1 parent 3646d46bda
commit 1abb09f06a
1 file changed
+2 -3
+2 -3
View File
@@ -117,9 +117,8 @@ int16_t sbdsp_muted();
uint32_t sbdsp_generate_sample();
static inline uint32_t sbdsp_sample_stereo() {
extern sbdsp_t sbdsp;
if (!(sbdsp.speaker_on & ~sbdsp.dac_resume_pending)) return 0;
if (sbdsp.dma_enabled) sbdsp.cur_sample = sbdsp_generate_sample();
return sbdsp.cur_sample; // direct DAC fallback
if (sbdsp.dma_enabled && !sbdsp.dac_resume_pending) sbdsp.cur_sample = sbdsp_generate_sample();
return sbdsp.speaker_on ? sbdsp.cur_sample : 0;
}
#endif // SBDSP_H