search for: check_mic

Displaying 3 results from an estimated 3 matches for "check_mic".

Did you mean: check_crc
2006 Aug 06
2
Speex + Ogg package
...ck). 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_samples; } int nbBytes = speex_bits_write(&enc_bits, packet+4, 2000); t...
2006 Aug 06
0
Speex + Ogg package
...AMES_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_samples; > } > int nbBytes =...
2006 Aug 06
2
Speex + Ogg package
...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]=tot...