You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AVAudioRecorder has a .pause() method but no property to check for a “paused” state. There should be a .isPaused property or even better a .state property that is a enum { 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 AVAudioRecorder exposes all of its states.
The text was updated successfully, but these errors were encountered:
Description
AVAudioRecorder has a
.pause()
method but no property to check for a “paused” state. There should be a.isPaused
property or even better a.state
property 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
AVAudioRecorder
exposes all of its states.The text was updated successfully, but these errors were encountered: