Displaying 3 results from an estimated 3 matches for "nb_samples".
Did you mean:
n_samples
2006 Aug 06
2
Speex + Ogg package
...e time it has 5-10 lag seconds (into the same machine,
working on loopback). Currently I'm packaging 4 frames per package
(FRAMES_PACKET=4).
Any help will be greatly appreciated.
Into the encoder I have this code:
speex_bits_reset(&enc_bits);
for(int i=0;i<FRAMES_PACKET;i++)
{
int nb_samples;
//Here I get the microphone data.
while((nb_samples=Check_Mic(Mic_data))==0);
speex_encode_int(enc_state, Mic_data, &enc_bits);
total_samples += nb_samples;
speex_bits_insert_terminator(&enc_bits);
//The time stamp
if(i==0)
((int*)packet)[0]=total_samp...
2006 Aug 06
0
Speex + Ogg package
...ne, working on loopback). Currently I'm packaging
> 4 frames per package (FRAMES_PACKET=4).
> Any help will be greatly appreciated.
>
>
> Into the encoder I have this code:
>
> speex_bits_reset(&enc_bits);
> for(int i=0;i<FRAMES_PACKET;i++)
> {
> int nb_samples;
> //Here I get the microphone data.
> while((nb_samples=Check_Mic(Mic_data))==0);
> speex_encode_int(enc_state, Mic_data, &enc_bits);
>
> total_samples += nb_samples;
> speex_bits_insert_terminator(&enc_bits);
>
> //The time stamp
>...
2006 Aug 06
2
Speex + Ogg package
...ckaging
> > 4 frames per package (FRAMES_PACKET=4).
> > Any help will be greatly appreciated.
> >
> >
> > Into the encoder I have this code:
> >
> > speex_bits_reset(&enc_bits);
> > for(int i=0;i<FRAMES_PACKET;i++)
> > {
> > int nb_samples;
> > //Here I get the microphone data.
> > while((nb_samples=Check_Mic(Mic_data))==0);
> > speex_encode_int(enc_state, Mic_data, &enc_bits);
> >
> > total_samples += nb_samples;
> > speex_bits_insert_terminator(&enc_bits);
> >
&g...