[speex-dev] question on usage of the libraries

Folkert van Heusden folkert at vanheusden.com
Fri Dec 13 11:54:59 PST 2002



> float_data[index] = (float)input_data[index];
> where input_data is a short *input_data "array". Is this correct? Or
should
> I scale the data down to -1.0 <= x <= 1.0?
JM> The scaling used by Speex is +- 32767 (16 bits) and the conversion
JM> you're doing is right. Have you listened to the output? Does it sound
JM> good (compare it to speexenc/speexdec)?

Ehr, not yet, to be honest :o) I still have to implement that code. But I'm
already asking if I'm doing the compression ok since it makes fixing bugs in
the decompression-code a lot simpler (what I mean is; that I can depend on
the input-data to be correct).

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'speex-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Speex-dev mailing list