<br><br><div><span class="gmail_quote">On 10/2/05, <b class="gmail_sendername">Andreas Klöckner</b> &lt;<a href="mailto:lists@informa.tiker.net">lists@informa.tiker.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi there,<br><br>here's a patch that switches tone generation in indications.c over from using<br>actual floating point code to using a pregenerated sine table. This patch<br>allows my poor FPU-less Linksys router to successfully play a dialtone with
<br>almost zero CPU usage.<br><br>(If you care about the details: Generating the 8000-entry sine table at<br>startup takes a bit more than a second on that machine, which is a MIPS using<br>an FPU emulator. Since each sample out of playtones_generator() takes two
<br>sine evaluations and we're sampling at 8000Hz, the Linksys is too slow by<br>about a factor of two.)<br><br>This might even save some cycles on bigger setups. The patch applies cleanly<br>and works on 1.0.x with x&gt;=7, on 
1.2.x it needs to be told where asterisk.h<br>is, but otherwise seems to work fine.</blockquote><div><br>
Applause! <br>

<br>
Dialtone generation is also a problem on even a 500 Mhz Xscale (which is also fpu-less)<br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Andreas<br><br><br>_______________________________________________<br>Asterisk-Dev mailing list
<br><a href="mailto:Asterisk-Dev@lists.digium.com">Asterisk-Dev@lists.digium.com</a><br><a href="http://lists.digium.com/mailman/listinfo/asterisk-dev">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>To UNSUBSCRIBE or update options visit:
<br>&nbsp;&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br><br><br></blockquote></div><br><br clear="all"><br>-- <br>Mike Taht<br>PostCards From the Bleeding Edge
<br><a href="http://the-edge.blogspot.com">http://the-edge.blogspot.com</a>