title: Android Video Circular Buffer with Sound
body: <p>I am using Google's Open Source Example: <strong><a href="https://github.com/google/grafika">Grafika</a></strong>. I am using it's <strong><a href="https://github.com/google/grafika/blob/master/src/com/android/grafika/ContinuousCaptureActivity.java">ContinuousCaptureActivity.java</a></strong> The CircularBuffer's Implementation is demonstrated in this Activity, but there is no audio included in the resultant Video file.<br/></p>
  
  <p>I want to add the Audio Recording functionality within this Activity and add the recorded Audio into the Video in the same CircularBuffered Fashion.</p>
  
  <p>For achieving this i have explored the MediaCodec Library, which was introduced in 4.3+ versions. I have also used MediaMuxer to capture Video and Audio Streams and Muxed them into a single Video.<br/></p>
  
  <p>But, I am not sure about how to implement the Audio Recording functionality into the <code>ContinuousCaptureActivity.java</code> class. Any Help is highly appreciated.</p>