Lines Matching refs:pWTIntFrame
46 extern void WT_NoiseGenerator (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame);
47 extern void WT_VoiceGain (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame);
50 extern void WT_InterpolateMono (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame);
52 extern void WT_InterpolateNoLoop (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame);
53 extern void WT_Interpolate (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame);
57 extern void WT_VoiceFilter (S_FILTER_CONTROL*pFilter, S_WT_INT_FRAME *pWTIntFrame);
74 void WT_VoiceGain (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame) in WT_VoiceGain() argument
90 numSamples = pWTIntFrame->numSamples; in WT_VoiceGain()
91 pMixBuffer = pWTIntFrame->pMixBuffer; in WT_VoiceGain()
92 pInputBuffer = pWTIntFrame->pAudioBuffer; in WT_VoiceGain()
95 …gainIncrement = (pWTIntFrame->frame.gainTarget - pWTIntFrame->prevGain) << (16 - SYNTH_UPDATE_PERI… in WT_VoiceGain()
99 gain = pWTIntFrame->prevGain << 16; in WT_VoiceGain()
171 void WT_Interpolate (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame) in WT_Interpolate() argument
184 numSamples = pWTIntFrame->numSamples; in WT_Interpolate()
185 pOutputBuffer = pWTIntFrame->pAudioBuffer; in WT_Interpolate()
191 phaseInc = pWTIntFrame->frame.phaseIncrement; in WT_Interpolate()
265 void WT_InterpolateNoLoop (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame) in WT_InterpolateNoLoop() argument
277 numSamples = pWTIntFrame->numSamples; in WT_InterpolateNoLoop()
278 pOutputBuffer = pWTIntFrame->pAudioBuffer; in WT_InterpolateNoLoop()
280 phaseInc = pWTIntFrame->frame.phaseIncrement; in WT_InterpolateNoLoop()
352 void WT_VoiceFilter (S_FILTER_CONTROL *pFilter, S_WT_INT_FRAME *pWTIntFrame) in WT_VoiceFilter() argument
365 numSamples = pWTIntFrame->numSamples; in WT_VoiceFilter()
366 pAudioBuffer = pWTIntFrame->pAudioBuffer; in WT_VoiceFilter()
370 b1 = -pWTIntFrame->frame.b1; in WT_VoiceFilter()
373 b2 = -pWTIntFrame->frame.b2 >> 1; in WT_VoiceFilter()
376 k = pWTIntFrame->frame.k >> 1; in WT_VoiceFilter()
418 void WT_NoiseGenerator (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame) in WT_NoiseGenerator() argument
428 numSamples = pWTIntFrame->numSamples; in WT_NoiseGenerator()
429 pOutputBuffer = pWTIntFrame->pAudioBuffer; in WT_NoiseGenerator()
430 phaseInc = pWTIntFrame->frame.phaseIncrement; in WT_NoiseGenerator()
474 void WT_ProcessVoice (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame) in WT_ProcessVoice() argument
479 WT_NoiseGenerator(pWTVoice, pWTIntFrame); in WT_ProcessVoice()
483 WT_Interpolate(pWTVoice, pWTIntFrame); in WT_ProcessVoice()
488 WT_InterpolateNoLoop(pWTVoice, pWTIntFrame); in WT_ProcessVoice()
492 if (pWTIntFrame->frame.k != 0) in WT_ProcessVoice()
493 WT_VoiceFilter(&pWTVoice->filter, pWTIntFrame); in WT_ProcessVoice()
505 gainLeft = (pWTIntFrame->prevGain * pWTVoice->gainLeft) << 1; in WT_ProcessVoice()
506 …gainIncLeft = (((pWTIntFrame->frame.gainTarget * pWTVoice->gainLeft) << 1) - gainLeft) >> SYNTH_UP… in WT_ProcessVoice()
509 gainRight = (pWTIntFrame->prevGain * pWTVoice->gainRight) << 1; in WT_ProcessVoice()
510 …gainIncRight = (((pWTIntFrame->frame.gainTarget * pWTVoice->gainRight) << 1) - gainRight) >> SYNTH… in WT_ProcessVoice()
512 pWTIntFrame->pAudioBuffer, in WT_ProcessVoice()
513 pWTIntFrame->pMixBuffer, in WT_ProcessVoice()
514 pWTIntFrame->numSamples, in WT_ProcessVoice()
523 pWTIntFrame->pAudioBuffer, in WT_ProcessVoice()
524 pWTIntFrame->pMixBuffer, in WT_ProcessVoice()
525 pWTIntFrame->numSamples, in WT_ProcessVoice()
536 WT_VoiceGain(pWTVoice, pWTIntFrame); in WT_ProcessVoice()
556 void WT_InterpolateMono (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame) in WT_InterpolateMono() argument
571 numSamples = pWTIntFrame->numSamples; in WT_InterpolateMono()
572 pMixBuffer = pWTIntFrame->pMixBuffer; in WT_InterpolateMono()
575 …gainIncrement = (pWTIntFrame->gainTarget - pWTIntFrame->prevGain) << (16 - SYNTH_UPDATE_PERIOD_IN_… in WT_InterpolateMono()
578 gain = pWTIntFrame->prevGain << 16; in WT_InterpolateMono()
582 phaseInc = pWTIntFrame->phaseIncrement; in WT_InterpolateMono()
644 void WT_ProcessVoice (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame) in WT_ProcessVoice() argument
650 WT_NoiseGenerator(pWTVoice, pWTIntFrame); in WT_ProcessVoice()
651 WT_VoiceGain(pWTVoice, pWTIntFrame); in WT_ProcessVoice()
657 WT_InterpolateMono(pWTVoice, pWTIntFrame); in WT_ProcessVoice()