<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">Hi Jean-Marc,<br><br>I have tested Speex in fixed-point mode on my PC without clicking noise.&nbsp; As I mentioned below, I tested Speex in fixed-point <br>mode running natively on the ARM side of the DaVinci without click noise.&nbsp; I only get the clicking noise when running Speex<br>on the DSP side.&nbsp; For the TI C64+ DSP on the DaVinci processor, the TI-specific switches doesn't do much other than <br>defining the different Speex data types (spx_int16_t, spx_uint16_t, spx_int32_t, etc) and the static heap and scratch size<br>(in config.h and speex_types.h).&nbsp; How do I try "generic fixed-point"; is there a MACRO for generic fixed-point like <br>"GENERIC_FIXED_POINT".&nbsp; I guess I could try to see if it's an encoder issue (encode it on the DSP
 and decode it on the<br>ARM side before playing) vs a decoder issue (encode it on the ARM and decode it on the DSP before playing).&nbsp; Any other<br>suggestions?&nbsp; Thanks.<br><br>Regards,<br>Andy<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Jean-Marc Valin &lt;jean-marc.valin@usherbrooke.ca&gt;<br>To: Andy Ngo &lt;ndno72-speex@yahoo.com&gt;<br>Cc: speex-dev@xiph.org<br>Sent: Tuesday, January 23, 2007 2:57:34 AM<br>Subject: Re: Clicking noise using Speex built for TI C64+ DSP of DaVinci Processor<br><br><div>Can you test your code with fixed-point on an x86 and see if you have<br>the same problem. You can also try the generic fixed-point without<br>TI-specific switches. The main thing I see that *could* cause problem is<br>the 16-bit chars in the bitpacker.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;Jean-Marc<br><br>Andy Ngo a écrit :<br>&gt; Hi,<br>&gt;&nbsp;&nbsp;<br>&gt; I've been trying to get
 Speex to compile and run on the DSP of TI's new DaVinci System-On-Chip processor, which has both an ARM<br>&gt; (ARM926) and a DSP (C64+, based on the C6400).&nbsp;&nbsp;I used the latest code (1.2beta) and followed the example in the speex-<br>&gt; 1.2beta1/ti/speex_C64_test trunk to build the Speex library for the DSP.&nbsp;&nbsp;Basically I have a loopback application on the ARM that<br>&gt; samples 8kHz 16-bit mono frames, gives them to the DSP to encode and decode them, and play the resulting decoded frames on the<br>&gt; headphone.&nbsp;&nbsp;It seems to work but I get a clicking noise.&nbsp;&nbsp;I have verified that this is not due to an underrun problem by doing the same<br>&gt; loopback bypassing Speex on the DSP side but added delay that is 3ms longer that than that of Speex encode and decode processing<br>&gt; times, and got smooth audio with no clicking noise.&nbsp;&nbsp;Also, I fed the female.wav (posted on Speex site) through the Speex encoder and<br>&gt;
 decoder on the DSP and got a resulting decoded_female.wav that has a clicking noise; since I can't post the wav file on this group, I <br>&gt; can send it to anyone who's interested in helping me.<br>&gt;&nbsp;&nbsp;<br>&gt; Also, if I run the loopback application with Speex natively on the ARM side (not using the DSP), it works fine.<br>&gt;&nbsp;&nbsp;<br>&gt; I don't know where that clicking noise is coming from.&nbsp;&nbsp;Any advice/comments/suggestions?<br>&gt;&nbsp;&nbsp;<br>&gt; Here's what's included in my config.h file for Speex (compiled with -DCONFIG_TI_C6X):<br>&gt;&nbsp;&nbsp;<br>&gt; #define FIXED_POINT<br>&gt; #define FRAME_SIZE 160<br>&gt; #define DISABLE_WIDEBAND<br>&gt; #define MAX_CHARS_PER_FRAME (42/BYTES_PER_CHAR)<br>&gt; #define MANUAL_ALLOC<br>&gt; #define USER_MISC<br>&gt; <br>&gt; Speex narrow band parameters I'm using:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Quality: 2&nbsp;&nbsp; /* 5950 bps */<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Enhancement:
 0<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Vbr: disabled<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Complexity: 1<br>&gt;&nbsp;&nbsp;<br>&gt; The DaVinci processor is relatively new and I can't seem to find anyone who has successfully used Speex on the DSP side.&nbsp;&nbsp;Your help<br>&gt; is appreciated.&nbsp;&nbsp;Thanks.<br>&gt;&nbsp;&nbsp;<br>&gt; Regards,<br>&gt; Andy<br></div></div><br></div></div></body></html>