No subject


Sun Jun 6 23:52:00 PDT 2010


eds to drag in the source and header files from the libcelt directory into =
the project and define HAVE_CONFIG_H is the project's pre-processor definit=
ion.

The tricky part is to build a config.h file.  To get it to work on VS some =
of the important settings include.
=20
#define CELT_BUILD
#define USE_ALLOCA

#undef VAR_ARRAYS
#undef restrict
#undef HAVE_STDINT_H
#undef inline

#define inline __inline
#define restrict

#undef HAVE_LRINT
#undef HAVE_LRINTF

I have also tested the windows version compiled as fixed point, again witho=
ut any problems.

I can supply a config.h and project file on request.  black_190 on the doma=
in hotmail.com.

Regards
George de Vries
Senior Software Engineer
Open Access



-----Original Message-----
From: celt-dev-bounces at xiph.org [mailto:celt-dev-bounces at xiph.org] On Behal=
f Of Jean-Marc Valin
Sent: Friday, 25 June 2010 11:02 AM
To: Riccardo Micci
Cc: celt-dev at xiph.org
Subject: Re: [CELT-dev] Getting CELT to work under Windows

Hi,

I suggest you try running the test cases in tests/ to see which=20
component you may be having problems with. Also, make sure that you=20
define HAVE_CONFIG_H and that your config.h file includes the following=20
(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=20
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 broke=
n.
> My testvector is:
> freq: 44100
> channels: 1
> I chose: frame_size =3D 256 and bytes_per_packet =3D 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
_______________________________________________
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