Conceptual implementation for recording / playing audio with AVFoundation framework.