[CELT-dev] Getting CELT to work under Windows

Jean-Marc Valin jean-marc.valin at usherbrooke.ca
Thu Jun 24 18:01:37 PDT 2010


Hi,

I suggest you try running the test cases in tests/ to see which 
component you may be having problems with. Also, make sure that you 
define HAVE_CONFIG_H and that your config.h file includes the following 
(that's my guess since I don't have a Windows dev environment):

#define CELT_BUILD
#define USE_ALLOCA
#define inline __inline
#define restrict

I know there's a bunch of people using CELT successfully on Windows, so 
I suspect there may just be something wrong with your environment.

Cheers,

	Jean-Marc


On 10-06-24 06:31 AM, Riccardo Micci wrote:
>
> 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
> <mailto:riccardo.micci at cambridgeconsultants.com>
> www.CambridgeConsultants.com <http://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.
>
>
>
>
> _______________________________________________
> celt-dev mailing list
> celt-dev at xiph.org
> http://lists.xiph.org/mailman/listinfo/celt-dev



More information about the celt-dev mailing list