[Speex-dev] Sound distorted after normalized.
    Jean-Marc Valin 
    Jean-Marc.Valin at USherbrooke.ca
       
    Tue Dec 28 21:04:46 PST 2004
    
    
  
> 16 bit ints have a range of -32768 to 32767. If you divide
> -32768 by 32767.0 you end up with -1.00003051850948 which
> is a bad thing.
> 
> Try normalizing with a value of 32768.0.
No. Speex expects values in the +-32767 range, not +-1.0. Just
converting from int16 to float *is* the right thing to do.
	Jean-Marc
-- 
Jean-Marc Valin <Jean-Marc.Valin at USherbrooke.ca>
Université de Sherbrooke
    
    
More information about the Speex-dev
mailing list