Displaying 1 result from an estimated 1 matches for "data_in_length".
2006 Aug 01
0
new to speex's!
...ream.
    bytes_written = speex_bits_write( bits, destinantion_buffer,
bytes_to_write );
    /// return the amount of data writtne.
    printf( "bytes written %d\n" ,bytes_written );
    return bytes_written;
}
and the decode. ...
int Decode( SpeexBits *bits, char * input_bits, int data_in_length , char *
output )
{
    float  * out_put = (float *)calloc(  data_in_length,sizeof( float ) );
    int number_of_frames = data_in_length/FRAME_SIZE;
    int offset
    for( int i = 0; i< number_of_frames; i++ )
    {
        // read the bits into the byte stream struct.
        speex_bits_read...