Lines Matching full:numsamples
56 static EAS_BOOL WT_UpdateVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EAS_I32 voiceNum, EAS_I32 *pMixBuffer, EAS_I32 numSamples);
453 EAS_I32 numSamples;
463 numSamples = (EAS_I32) (pWTVoice->loopEnd - pWTVoice->phaseAccum);
467 numSamples = (EAS_I32) ((numSamples << NUM_PHASE_FRAC_BITS) - pWTVoice->phaseFrac);
469 pWTIntFrame->numSamples = 1 + (numSamples / pWTIntFrame->frame.phaseIncrement);
471 pWTIntFrame->numSamples = numSamples;
473 if (pWTIntFrame->numSamples < 0) {
476 pWTIntFrame->numSamples = 0;
511 static EAS_BOOL WT_UpdateVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EAS_I32 voiceNum, EAS_I32 *pMixBuffer, EAS_I32 numSamples)
523 return DLS_UpdateVoice(pVoiceMgr, pSynth, pVoice, voiceNum, pMixBuffer, numSamples);
564 intFrame.numSamples = numSamples;
572 if (intFrame.numSamples < 0) intFrame.numSamples = 0;
574 if (intFrame.numSamples > BUFFER_SIZE_IN_MONO_SAMPLES)
575 intFrame.numSamples = BUFFER_SIZE_IN_MONO_SAMPLES;