summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-06-15 21:46:32 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-06-15 21:46:32 +0000
commitc9ef5806f16f3a7e6a0ddeefddd294c3737162c9 (patch)
tree428cf3250154e754aba76813cdc10dc7e6e10ab5
parentca14209c66ea2d31e1da696974ae588adc317017 (diff)
parent0d9f4e132732a45318e2a507c359aeef196f6635 (diff)
downloadsonivox-android12-mainline-tzdata3-release.tar.gz
Change-Id: I86a7773888a5e2f000703f7591a10733f7441b64
-rw-r--r--arm-wt-22k/lib_src/eas_dlssynth.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/arm-wt-22k/lib_src/eas_dlssynth.c b/arm-wt-22k/lib_src/eas_dlssynth.c
index a07262c..8606a29 100644
--- a/arm-wt-22k/lib_src/eas_dlssynth.c
+++ b/arm-wt-22k/lib_src/eas_dlssynth.c
@@ -348,24 +348,11 @@ EAS_RESULT DLS_StartVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOIC
pWTVoice->phaseAccum = (EAS_U32) pSynth->pDLS->pDLSSamples + pSynth->pDLS->pDLSSampleOffsets[pDLSRegion->wtRegion.waveIndex];
if (pDLSRegion->wtRegion.region.keyGroupAndFlags & REGION_FLAG_IS_LOOPED)
{
-#if defined (_8_BIT_SAMPLES)
pWTVoice->loopStart = pWTVoice->phaseAccum + pDLSRegion->wtRegion.loopStart;
pWTVoice->loopEnd = pWTVoice->phaseAccum + pDLSRegion->wtRegion.loopEnd - 1;
-#else //_16_BIT_SAMPLES
- pWTVoice->loopStart = pWTVoice->phaseAccum + (pDLSRegion->wtRegion.loopStart<<1);
- pWTVoice->loopEnd = pWTVoice->phaseAccum + (pDLSRegion->wtRegion.loopEnd<<1) - 2;
-#endif
}
else
- {
-#if defined (_8_BIT_SAMPLES)
- pWTVoice->loopStart = pWTVoice->loopEnd = pWTVoice->phaseAccum
- + pSynth->pDLS->pDLSSampleLen[pDLSRegion->wtRegion.waveIndex] - 1;
-#else //_16_BIT_SAMPLES
- pWTVoice->loopStart = pWTVoice->loopEnd = pWTVoice->phaseAccum
- + pSynth->pDLS->pDLSSampleLen[pDLSRegion->wtRegion.waveIndex] - 2;
-#endif
- }
+ pWTVoice->loopStart = pWTVoice->loopEnd = pWTVoice->phaseAccum + pSynth->pDLS->pDLSSampleLen[pDLSRegion->wtRegion.waveIndex] - 1;
return EAS_SUCCESS;
}