[speex-dev] Error in my code
Jean-Marc Valin
Jean-Marc.Valin at USherbrooke.ca
Fri Nov 7 11:48:48 PST 2003
> (float*)buffer = (float*)buffer + (frameSize);
>
> speex_bits_reset(&bits);
>
> speex_encode(enc_state, (float*)buffer, &bits);
Please don't tell me that your "buffer" variable is a (short*) and you
expect that to work by casting the pointer to (float*)....
Jean-Marc
--
Jean-Marc Valin, M.Sc.A., ing. jr.
LABORIUS (http://www.gel.usherb.ca/laborius)
Université de Sherbrooke, Québec, Canada
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Ceci est une partie de message numériquement signée
Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20031107/28a1e485/signature-0001.pgp
More information about the Speex-dev
mailing list