Displaying 1 result from an estimated 1 matches for "out_float".
Did you mean:
  one_float
  
2005 Oct 09
0
Fw: problem in encoder/decoder
...har*result;
int scale=25;
 
int size= max(pMsg->m_nBufferSize*scale
frame_size*scale*(pMsg->m_nBufferSize/frame_size)) + frame_size*scale;
result = new unsigned char[size];
ZeroMemory(result,size);
 
output_frame = new short[frame_size];
ZeroMemory(output_frame,frame_size);
 
float* out_float;
out_float = new float[frame_size];
ZeroMemory(out_float,frame_size);
 
int encoded_bytes =0;
int pos=0;
 
while(pos<pMsg->m_nBufferSize && encoded_bytes<size)
{
nbBytes = pMsg->m_pBuffer[pos];
if(nbBytes>frame_size)
nbBytes = frame_size;
 
if((pMsg->m_nBuffer...