Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FB8628424: AVAudioRecorder should expose its pause state #147

Open
sindresorhus opened this issue Sep 4, 2020 · 0 comments
Open

FB8628424: AVAudioRecorder should expose its pause state #147

sindresorhus opened this issue Sep 4, 2020 · 0 comments

Comments

@sindresorhus
Copy link
Member

  • Date: 2020-09-04
  • Resolution: Open
  • Area: AVFoundation
  • OS: macOS 10.15.6
  • Type: Suggestion

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 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant