Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Yes, it is definitely possible. Last I checked the Apple Core Audio docs were not very good, but it has been a few months since I've worked with it. Here are the steps that I would follow.</p> <ol> <li><p>Record the audio sample.</p></li> <li><p>Reverse the audio by looping through the first half of the array and swapping the value located there with one an equidistant from the end of the array.</p></li> <li><p>Play the resulting audio clip.</p></li> </ol> <p>Quite frankly, the first step is probably the hardest. <a href="http://trailsinthesand.com/exploring-iphone-audio-part-1/" rel="nofollow noreferrer">Here</a> is a decent article about doing audio on the iPhone including recording. Make sure you look at all of the different parts of the article. <a href="http://www.tuaw.com/2007/08/06/iphone-coding-recording-audio/" rel="nofollow noreferrer">Here</a> is another article about recording sound on the iPhone, but using a different framework. There are really several ways to go about recording on the iPhone though, last I checked, if you want to play audio while you are recording you have to use RemoteIO.</p> <p>Edit:</p> <p>If you would like to use RemoteIO(which I preferred), then <a href="http://atastypixel.com/blog/2008/11/04/using-remoteio-audio-unit/" rel="nofollow noreferrer">this site</a> is pretty helpful for getting started with it. Also, the <a href="http://developer.apple.com/iphone/library/samplecode/aurioTouch/index.html" rel="nofollow noreferrer">aurioTouch</a> sample program that Apple provides is immensely helpful (though more than you want). </p> <p>If you don't need RemoteIO (because it can be a major pain though it is more low-level and thus more flexible), then try the <a href="http://developer.apple.com/iphone/library/samplecode/SpeakHere/index.html" rel="nofollow noreferrer">SpeakHere</a> sample program. It is made just to record and play back. However, I just looked at it and it writes the recording to a file rather than a buffer which isn't what you want. I would recommend going with RemoteIO for that reason (unless you can find a way to have it write to a buffer instead).</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload