mirror of
https://github.com/polpo/picogus.git
synced 2026-10-25 21:40:16 +00:00
SB: speaker control should only mute output and do not stop DMA
(fixes Scream Tracker 3)
This commit is contained in:
1 parent
3646d46bda
commit
1abb09f06a
1 file changed
+2
-3
+2
-3
@@ -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
|
||||
Reference in new issue
Block a user