[CELT-dev] Getting CELT to work under Windows

Riccardo Micci riccardo.micci at cambridgeconsultants.com
Thu Jun 24 03:31:28 PDT 2010


Hi,
My name is Riccardo Micci i downloaded the CELT source code and I compiled 
it under Windows. This is meant to be a preliminary study for my company's 
project.
When i run CELT it encodes and decodes the file back saying "Encoder 
matches decoder!!". When i try to play the output though the result is 
just noise and clicks.
The only changes I've applied are some #defines to avoid compiler error 
(for example my Visual C doesn't support "restrict"...) and automatic 
loading and saving input and output files.
Looking at the decoded file with Matlab, i can see the most of the time 
the result is saturated. Even worse when i use FIXED_POINT define. I also 
tried to avoid saturation changing the following line in arch.h:
#define SCALEOUT(a)     ((a)*(1/CELT_SIG_SCALE)) to #define SCALEOUT(a) 
((a)*(1/(2*CELT_SIG_SCALE)))
The result audio doesn't saturate anymore but it's still completely 
broken.
My testvector is:
freq: 44100
channels: 1
I chose: frame_size = 256 and bytes_per_packet = 46.

Does anybody else have this problem? ?Can someone help me finding the 
problem?

Regards
Riccardo


Riccardo Micci
Senior DSP Engineer, Wireless Group 
Cambridge Consultants
Science Park, Milton Road 
Cambridge, CB4 0DW, England
Switchboard: +44 (0)1223 420024
Direct dial: +44 (0)1223 392402
Mobile: +44 (0)
Fax: +44 (0)1223 423373
riccardo.micci at cambridgeconsultants.com
www.CambridgeConsultants.com
 





This email is from Cambridge Consultants Limited, Science Park, Milton 
Road, Cambridge CB4 0DW with registered number 1036298 England. It may 
contain confidential information. It is intended for the addressee only 
and may not be copied or disclosed to any third party without our 
permission. If you are not the intended recipient please contact the 
sender as soon as possible and delete the material from any computer. If 
this email has been sent as a personal message to the addressee, the 
sender is not acting in his/her capacity as an employee or officer of 
Cambridge Consultants Limited and no liability is accepted for the content 
of any such email. Outgoing email may be monitored for the purpose of 
ensuring compliance with our email policy and relevant laws.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/opus/attachments/20100624/85d16f0f/attachment-0002.htm 


More information about the celt-dev mailing list