title: Record and send audio data to c++ function
body: <p>I need to send audio data in real-time in PCM format 8 KHz 16 Bit Mono.</p>
  
  <p><strong>Audio must been sent like array of chars with length 
  (&lt;#char *data#>, &lt;#int len#>).</strong></p>
  
  <p>Now I'm beginner in Audio processing and cant really understand how to accomplish that. My best try was been to convert to iLBC format and try but it couldn't work. Is there any sample how to record and convert audio to any format. I have already read Learning Core Audio from Chris Adamson and Kevin Avila but I really didn't find solution that works.</p>
  
  <p>Simple what i need:</p>
  
  <p><strong>(record)->(convert?)-> send(char *data, int length);</strong></p>
  
  <p>Couse I need to send data like arrays of chars i cant use player.</p>
  
  <p>EDIT: 
  I managed to make everything work with recording and with reading buffers. What I can't manage is :</p>
  
  <pre><code> if (ref[i]-&gt;mAudioDataByteSize != 0){
         char * data = (char*)ref[i]-&gt;mAudioData;
         sendData(mHandle, data, ref[i]-&gt;mAudioDataByteSize);
          }
  </code></pre>