Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFB8628424: AVAudioRecorder should expose its pause state #147
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
AVAudioRecorder has a
.pause()method but no property to check for a “paused” state. There should be a.isPausedproperty or even better a.stateproperty that is aenum { case stopped, recording, paused }.It is possible to hack this together by creating a wrapper class that wraps the record/stop/pause methods and keeps track of the state from that. But that’s both annoying to write and easy to get wrong. It’s expected that a class like
AVAudioRecorderexposes all of its states.