<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<STYLE type=text/css>DIV {
        MARGIN: 0px
}
</STYLE>
<META content="MSHTML 6.00.2900.3020" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Andy,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Send me the wav file and I will try to help 
you.  Also, please send the encoded output from female.wav.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Have you looked at the output audio with a waveform 
editor, to see if you can find the clicking?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Have you tried running the sample build in the C64x 
simulator?  That would give you a reference for file comparison.  That 
build is setup for Quality 3 (8kbps).  I just ran the simulator build at 
8kbps, and the output sounds fine.  I have not tried 5950bps before, but I 
just did, and I do not hear clicking.  I will send you the simulator output 
files off-list.</FONT></DIV>
<DIV> </DIV>
<DIV>By the way, the 16-bit char size that Jean-Marc refers to in the C5x, not 
the C6x, so that is not an issue here.  You could have a problem in your 
sample handling, or maybe the bit handling, since 5950 does not produce an 
integer number of bytes per frame (1 bit short of 15 bytes).</DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>- Jim</FONT></DIV></FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=ndno72-speex@yahoo.com href="mailto:ndno72-speex@yahoo.com">Andy 
  Ngo</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=jean-marc.valin@usherbrooke.ca 
  href="mailto:jean-marc.valin@usherbrooke.ca">Jean-Marc Valin</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=speex-dev@xiph.org 
  href="mailto:speex-dev@xiph.org">speex-dev@xiph.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, January 23, 2007 1:16 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [Speex-dev] Re: Clicking noise 
  using Speex built for TI C64+ DSP ofDaVinci Processor</DIV>
  <DIV><BR></DIV>
  <DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">
  <DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial,helvetica,sans-serif">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-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif">----- 
  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>
  <P>
  <HR>
  <P></P>_______________________________________________<BR>Speex-dev mailing 
  list<BR>Speex-dev@xiph.org<BR>http://lists.xiph.org/mailman/listinfo/speex-dev<BR></BLOCKQUOTE></BODY></HTML>