search for: data_as_shorts

Displaying 1 result from an estimated 1 matches for "data_as_shorts".

2006 Aug 01
0
new to speex's!
...at all. :D this is the code for the encode. int PackVoiceData(SpeexBits *bits,int space_avalible_in_packect, int size_of_data_avalible, int frame_size , void * data_to_pack, char * destinantion_buffer ) { float frame[FRAME_SIZE]; int offset= 0; float * data_as_floats; short * data_as_shorts = (short *) data_to_pack; memset(destinantion_buffer , 0,size_of_data_avalible); /// memset(data_as_shorts , 0,size_of_data_avalible); int number_of_frames; /// clear the space each time. int length = space_avalible_in_packect; if ( size_of_data_avalible < space_avalibl...