Displaying 1 result from an estimated 1 matches for "m_oggpacket".
2002 Mar 27
1
What exactly is threadsafe
...e( vorbis_analysis_blockout( &m_vorbisDsp, &m_vorbisBlock ) == 1 ) {
    /* analysis, assume we want to use bitrate management */
    vorbis_analysis( &m_vorbisBlock, NULL );
    vorbis_bitrate_addblock( &m_vorbisBlock );
    while( vorbis_bitrate_flushpacket( &m_vorbisDsp, &m_oggPacket ) ) {
      /* weld the packet into the bitstream */
      ogg_stream_packetin( &m_oggStream, &m_oggPacket );	  
      writePage();
    }
}
**Write Page looks like this**:
int result;
  result = ogg_stream_pageout( &m_oggStream, &m_oggPage );
  
  while( result != 0 ) {
    m_sink-...