From 82d513919735b10680779f2da416b096e184c582 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Fri, 8 Nov 2024 02:04:06 -0500 Subject: [PATCH] SegaPCM: its still there --- src/engine/platform/segapcm.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/engine/platform/segapcm.cpp b/src/engine/platform/segapcm.cpp index d3c8a99b0..381736ffd 100644 --- a/src/engine/platform/segapcm.cpp +++ b/src/engine/platform/segapcm.cpp @@ -510,6 +510,11 @@ void DivPlatformSegaPCM::renderSamples(int sysID) { for (int i=0; isong.sampleLen; i++) { DivSample* sample=parent->getSample(i); + if (!sample->renderOn[0][sysID]) { + sampleOffSegaPCM[i]=0; + continue; + } + unsigned int alignedSize=sample->getLoopEndPosition(DIV_SAMPLE_DEPTH_8BIT); if (alignedSize>=65279) alignedSize=65279; if ((memPos&(~0xffff))!=((memPos+alignedSize)&(~0xffff))) {