<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. As I mentioned below, I tested Speex in fixed-point <br>mode running natively on the ARM side of the DaVinci without click noise. I only get the clicking noise when running Speex<br>on the DSP side. 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). How do I try "generic fixed-point"; is there a MACRO for generic fixed-point like <br>"GENERIC_FIXED_POINT". 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). Any other<br>suggestions? 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 <jean-marc.valin@usherbrooke.ca><br>To: Andy Ngo <ndno72-speex@yahoo.com><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> Jean-Marc<br><br>Andy Ngo a écrit :<br>> Hi,<br>> <br>> 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>> (ARM926) and a DSP (C64+, based on the C6400). I used the latest code (1.2beta) and followed the example in the speex-<br>> 1.2beta1/ti/speex_C64_test trunk to build the Speex library for the DSP. Basically I have a loopback application on the ARM that<br>> 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>> headphone. It seems to work but I get a clicking noise. I have verified that this is not due to an underrun problem by doing the same<br>> loopback bypassing Speex on the DSP side but added delay that is 3ms longer that than that of Speex encode and decode processing<br>> times, and got smooth audio with no clicking noise. Also, I fed the female.wav (posted on Speex site) through the Speex encoder and<br>>
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>> can send it to anyone who's interested in helping me.<br>> <br>> Also, if I run the loopback application with Speex natively on the ARM side (not using the DSP), it works fine.<br>> <br>> I don't know where that clicking noise is coming from. Any advice/comments/suggestions?<br>> <br>> Here's what's included in my config.h file for Speex (compiled with -DCONFIG_TI_C6X):<br>> <br>> #define FIXED_POINT<br>> #define FRAME_SIZE 160<br>> #define DISABLE_WIDEBAND<br>> #define MAX_CHARS_PER_FRAME (42/BYTES_PER_CHAR)<br>> #define MANUAL_ALLOC<br>> #define USER_MISC<br>> <br>> Speex narrow band parameters I'm using:<br>> Quality: 2 /* 5950 bps */<br>> Enhancement:
0<br>> Vbr: disabled<br>> Complexity: 1<br>> <br>> The DaVinci processor is relatively new and I can't seem to find anyone who has successfully used Speex on the DSP side. Your help<br>> is appreciated. Thanks.<br>> <br>> Regards,<br>> Andy<br></div></div><br></div></div></body></html>