| if (wvoice == NULL) | if (wvoice == NULL) | ||||
| return; | return; | ||||
| int x; | |||||
| int x = 0; | |||||
| int ix; | int ix; | ||||
| static int Flutter_ix = 0; | static int Flutter_ix = 0; | ||||
| // advance the pitch | // advance the pitch | ||||
| wdata.pitch_ix += wdata.pitch_inc; | wdata.pitch_ix += wdata.pitch_inc; | ||||
| if ((ix = wdata.pitch_ix>>8) > 127) ix = 127; | if ((ix = wdata.pitch_ix>>8) > 127) ix = 127; | ||||
| x = wdata.pitch_env[ix] * wdata.pitch_range; | |||||
| if (wdata.pitch_env) x = wdata.pitch_env[ix] * wdata.pitch_range; | |||||
| wdata.pitch = (x>>8) + wdata.pitch_base; | wdata.pitch = (x>>8) + wdata.pitch_base; | ||||
| if(const_f0) | if(const_f0) | ||||
| wdata.pitch = (const_f0<<12); | wdata.pitch = (const_f0<<12); | ||||
| if (wdata.pitch < 102400) | if (wdata.pitch < 102400) | ||||
| wdata.pitch = 102400; // min pitch, 25 Hz (25 << 12) | wdata.pitch = 102400; // min pitch, 25 Hz (25 << 12) | ||||
| static bool resume = false; | static bool resume = false; | ||||
| static int echo_complete = 0; | static int echo_complete = 0; | ||||
| if (wdata.pitch < 102400) | |||||
| wdata.pitch = 102400; // min pitch, 25 Hz (25 << 12) | |||||
| while (out_ptr < out_end) { | while (out_ptr < out_end) { | ||||
| if (WcmdqUsed() <= 0) { | if (WcmdqUsed() <= 0) { | ||||
| if (echo_complete > 0) { | if (echo_complete > 0) { |