I'm creating this simple audio recorder and editor interface for an iOS app:
The audio is recorded into a float array that is used to create the waveform. After recording I copy the float data into an AVAudioPCMBuffer for playing with AVAudioPlayerNode. I'm able to play the buffer from the start, but I can not figure out how I can play just a segment of the buffer. The scheduleSegment function only works for files.
