search for: audio_page

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

2006 Aug 06
2
Speex + Ogg package
...total_samples; } int nbBytes = speex_bits_write(&enc_bits, packet+4, 2000); tam=nbBytes+4; //Now the ogg package op.packet = (unsigned char *)packet; op.bytes = nbBytes+4; op.b_o_s = 0; op.packetno = packet_id; packet_id++; ogg_stream_packetin(&os, &op); ogg_stream_flush(&os, &audio_page); return audio_page; } As for the decoder I have this. //Incoming data from udp is on buffer char *buffer=ogg_sync_buffer(&oy,4096); memcpy(buffer,buff,len); ogg_sync_wrote(&oy,len); while(ogg_sync_pageout(&oy,&audio_page)>0) { if (stream_init == 0) { ogg_strea...
2006 Aug 06
0
Speex + Ogg package
...c_bits, packet+4, 2000); > tam=nbBytes+4; > > //Now the ogg package > op.packet = (unsigned char *)packet; > op.bytes = nbBytes+4; > op.b_o_s = 0; > op.packetno = packet_id; > packet_id++; > > ogg_stream_packetin(&os, &op); > ogg_stream_flush(&os, &audio_page); > > return audio_page; > } > > As for the decoder I have this. > > //Incoming data from udp is on buffer > char *buffer=ogg_sync_buffer(&oy,4096); > memcpy(buffer,buff,len); > ogg_sync_wrote(&oy,len); > while(ogg_sync_pageout(&oy,&audio_page)&g...
2006 Aug 06
2
Speex + Ogg package
...; > > > //Now the ogg package > > op.packet = (unsigned char *)packet; > > op.bytes = nbBytes+4; > > op.b_o_s = 0; > > op.packetno = packet_id; > > packet_id++; > > > > ogg_stream_packetin(&os, &op); > > ogg_stream_flush(&os, &audio_page); > > > > return audio_page; > > } > > > > As for the decoder I have this. > > > > //Incoming data from udp is on buffer > > char *buffer=ogg_sync_buffer(&oy,4096); > > memcpy(buffer,buff,len); > > ogg_sync_wrote(&oy,len); > &gt...