search for: mic_data

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

Did you mean: mc_data
2006 Aug 06
2
Speex + Ogg package
...ntly 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); tam=nbByte...
2006 Aug 06
0
Speex + Ogg package
...T=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_bi...
2006 Aug 06
2
Speex + Ogg package
...ed. > > > > > > 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_sample...