[Speex-dev] Conversion problem in encoding and decoding

Vinod Vijayan vinod at speechdesk.com
Tue Jan 4 05:20:16 PST 2005


> short temp_short;
> float temp_float;
> float floatData[number_of_sample];
>
> for (int i=0; i < number_of_sample; i++)
> {
>   memcpy(&temp_short, &src[i*2], 2);
>   temp_float = temp_short;
>   floatData[i] = temp_float;
> }
>
> yueweng
>

Thanks for the encoding code can yu plz send me the decoding code
 for conversion from float array to character array.





More information about the Speex-dev mailing list