Lines Matching refs:pWTIntFrame
49 extern void WT_NoiseGenerator (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame);
50 extern void WT_VoiceGain (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame);
53 extern void WT_InterpolateMono (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame);
55 extern void WT_InterpolateNoLoop (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame);
56 extern void WT_Interpolate (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame);
60 extern void WT_VoiceFilter (S_FILTER_CONTROL*pFilter, S_WT_INT_FRAME *pWTIntFrame);
77 void WT_VoiceGain (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame) in WT_VoiceGain() argument
93 numSamples = pWTIntFrame->numSamples; in WT_VoiceGain()
99 pMixBuffer = pWTIntFrame->pMixBuffer; in WT_VoiceGain()
100 pInputBuffer = pWTIntFrame->pAudioBuffer; in WT_VoiceGain()
103 …gainIncrement = (pWTIntFrame->frame.gainTarget - pWTIntFrame->prevGain) << (16 - SYNTH_UPDATE_PERI… in WT_VoiceGain()
107 gain = pWTIntFrame->prevGain << 16; in WT_VoiceGain()
179 void WT_Interpolate (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame) in WT_Interpolate() argument
192 numSamples = pWTIntFrame->numSamples; in WT_Interpolate()
198 pOutputBuffer = pWTIntFrame->pAudioBuffer; in WT_Interpolate()
204 phaseInc = pWTIntFrame->frame.phaseIncrement; in WT_Interpolate()
278 void WT_InterpolateNoLoop (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame) in WT_InterpolateNoLoop() argument
290 numSamples = pWTIntFrame->numSamples; in WT_InterpolateNoLoop()
296 pOutputBuffer = pWTIntFrame->pAudioBuffer; in WT_InterpolateNoLoop()
298 phaseInc = pWTIntFrame->frame.phaseIncrement; in WT_InterpolateNoLoop()
370 void WT_VoiceFilter (S_FILTER_CONTROL *pFilter, S_WT_INT_FRAME *pWTIntFrame) in WT_VoiceFilter() argument
383 numSamples = pWTIntFrame->numSamples; in WT_VoiceFilter()
389 pAudioBuffer = pWTIntFrame->pAudioBuffer; in WT_VoiceFilter()
393 b1 = -pWTIntFrame->frame.b1; in WT_VoiceFilter()
396 b2 = -pWTIntFrame->frame.b2 >> 1; in WT_VoiceFilter()
399 k = pWTIntFrame->frame.k >> 1; in WT_VoiceFilter()
441 void WT_NoiseGenerator (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame) in WT_NoiseGenerator() argument
451 numSamples = pWTIntFrame->numSamples; in WT_NoiseGenerator()
457 pOutputBuffer = pWTIntFrame->pAudioBuffer; in WT_NoiseGenerator()
458 phaseInc = pWTIntFrame->frame.phaseIncrement; in WT_NoiseGenerator()
502 void WT_ProcessVoice (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame) in WT_ProcessVoice() argument
507 WT_NoiseGenerator(pWTVoice, pWTIntFrame); in WT_ProcessVoice()
511 WT_Interpolate(pWTVoice, pWTIntFrame); in WT_ProcessVoice()
516 WT_InterpolateNoLoop(pWTVoice, pWTIntFrame); in WT_ProcessVoice()
520 if (pWTIntFrame->frame.k != 0) in WT_ProcessVoice()
521 WT_VoiceFilter(&pWTVoice->filter, pWTIntFrame); in WT_ProcessVoice()
533 gainLeft = (pWTIntFrame->prevGain * pWTVoice->gainLeft) << 1; in WT_ProcessVoice()
534 …gainIncLeft = (((pWTIntFrame->frame.gainTarget * pWTVoice->gainLeft) << 1) - gainLeft) >> SYNTH_UP… in WT_ProcessVoice()
537 gainRight = (pWTIntFrame->prevGain * pWTVoice->gainRight) << 1; in WT_ProcessVoice()
538 …gainIncRight = (((pWTIntFrame->frame.gainTarget * pWTVoice->gainRight) << 1) - gainRight) >> SYNTH… in WT_ProcessVoice()
540 pWTIntFrame->pAudioBuffer, in WT_ProcessVoice()
541 pWTIntFrame->pMixBuffer, in WT_ProcessVoice()
542 pWTIntFrame->numSamples, in WT_ProcessVoice()
551 pWTIntFrame->pAudioBuffer, in WT_ProcessVoice()
552 pWTIntFrame->pMixBuffer, in WT_ProcessVoice()
553 pWTIntFrame->numSamples, in WT_ProcessVoice()
564 WT_VoiceGain(pWTVoice, pWTIntFrame); in WT_ProcessVoice()
584 void WT_InterpolateMono (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame) in WT_InterpolateMono() argument
599 numSamples = pWTIntFrame->numSamples; in WT_InterpolateMono()
605 pMixBuffer = pWTIntFrame->pMixBuffer; in WT_InterpolateMono()
608 …gainIncrement = (pWTIntFrame->gainTarget - pWTIntFrame->prevGain) << (16 - SYNTH_UPDATE_PERIOD_IN_… in WT_InterpolateMono()
611 gain = pWTIntFrame->prevGain << 16; in WT_InterpolateMono()
615 phaseInc = pWTIntFrame->phaseIncrement; in WT_InterpolateMono()
677 void WT_ProcessVoice (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame) in WT_ProcessVoice() argument
683 WT_NoiseGenerator(pWTVoice, pWTIntFrame); in WT_ProcessVoice()
684 WT_VoiceGain(pWTVoice, pWTIntFrame); in WT_ProcessVoice()
690 WT_InterpolateMono(pWTVoice, pWTIntFrame); in WT_ProcessVoice()