title: Encode PCMBuffer to Ogg with Opus in iOS 8
body: <p>I need to encode raw audio into ogg packets with opus codec.</p>
  
  <p>I get the raw audio like that: </p>
  
  <pre><code>    input.installTapOnBus(0, bufferSize: 2048, format: input.inputFormatForBus(0)) { (buffer: AVAudioPCMBuffer!, time: AVAudioTime!) -&gt; Void in
  
          // Encode buffer to Ogg
      }
  </code></pre>
  
  <p>I have Ogg.framework and libopus.a in my project. I don't seem to understand the documentation how to actually use Opus with Ogg. And I didn't find any example that replicates what I need. </p>
  
  <p>Any help appreciated!</p>