title: Cocoa: Simple audio recording
body: <p>I'm trying to implement some simple audio recording functionality in my application and I can't quite figure out to do it. I've been pointed to <a href="http://developer.apple.com/mac/library/samplecode/RecordAudioToFile/index.html" rel="nofollow">this example</a>, but I can't get it to run in XCode, and it appears to be written in C++. </p>
  
  <p>What I need to be able to do is record audio to a file, and then be able to get the current timestamp of the recording whilst recording. I would appreciate any help with this. Thanks!</p>