[Speex-dev] Question about speex_preprocess

Jean-Marc Valin jean-marc.valin at usherbrooke.ca
Thu Jun 1 19:00:48 PDT 2006


On Thu, 2006-06-01 at 10:53 -0700, Long Deng wrote:
> While most of the native functions take float[] array as input, why
> the function speex_preprocess(...) can only accept short[] array?  How
> do I call this function if I have float[] array inputs?  Do I need to
> convert the floats to Integers back and forth? 

That would be a good idea, yes. Note that 1.1.x has made a general
transitions to using shorts, so I recommend you use the _int() functions
of the encoder and decoder as well. The old ones are still there for
compatibility reasons.

	Jean-Marc


More information about the Speex-dev mailing list