I need to encode a PCM sample (captured from audio input) with vorbis codec. An example I found shows how to encode WAV to ogg, and the vorbis_block structure (which holds the raw encoded buffer as it seems) has no public members according to documentation. I don't need ogg. I need to mix this raw encoded audio data with a VP8 video packet in a WebM container (realtime audio/video recording).
How to get raw encoded audio buffer with libvorbis?