I found out that sometimes division by zero exception can occur in libspeex if it is compiled with FIXED_POINT macro.<br>This happens in lpc.c:94, the following line of code<br><a href="mailto:speex-dev@xiph.org"></a><br>r = DIV32_16(rr+PSHR32(error,1),ADD16(error,8));<br>
<br>It happens rarely only on machine with no microphone attached (so practically constant input signal),<br>application crashes after about a minute of encoding.<br><br>Platform: WinXP SP3, VS2005 SP1, Speex compiled with Full Optimization<br>
<br>Does anybody have an idea how to fix it?<br>