I will merge this in with iOS13 since this thing is pretty busted with the ReplayKit bug anyways that is being fixed. I have some small updates for it on record_inapp_audio_merge branch. Also added mic audio and working on making both tracks optional.
There was an issue with this audio added where sometimes it would try to write a sample even with stopCapture called. Keeping track of the start/stop state in the class and blocking startCapture's sample callback when in self.finishCalled state seems to have stopped the crash.
I will merge this in with iOS13 since this thing is pretty busted with the ReplayKit bug anyways that is being fixed. I have some small updates for it on
record_inapp_audio_merge
branch. Also added mic audio and working on making both tracks optional.There was an issue with this audio added where sometimes it would try to write a sample even with
stopCapture
called. Keeping track of the start/stop state in the class and blockingstartCapture
's sample callback when inself.finishCalled
state seems to have stopped the crash.