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

Fix audio related issues #710

Merged
merged 9 commits into from
Sep 6, 2019
Merged

Fix audio related issues #710

merged 9 commits into from
Sep 6, 2019

Conversation

karaggeorge
Copy link
Member

@karaggeorge karaggeorge commented Sep 3, 2019

Fixes #692
Fixes #693
Fixes #275

This also adds a lot of checks around having/granting access to the microphone, which might help reduce or troubleshoot problems people are having with recording sound

Also, the last beta was recording sound for me, so if someone can validate that this fixes #693 (using the build) that would be great

const getMicrophoneAccess = () => systemPreferences.getMediaAccessStatus('microphone');

const promptSystemPreferences = async ({asked} = {}) => {
if (!asked) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (!asked) {
if (!hasAsked) {

And I would do an early return.

main/common/system-permissions.js Outdated Show resolved Hide resolved
main/common/system-permissions.js Outdated Show resolved Hide resolved
main/common/system-permissions.js Outdated Show resolved Hide resolved
main/cropper.js Outdated Show resolved Hide resolved
main/cropper.js Outdated Show resolved Hide resolved
main/cropper.js Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
@sindresorhus
Copy link
Member

@Geroimparable @kevincannon Can you test https://kap-artifacts.now.sh/fix-recording-with-sound and see if it fixes #693 for you?

karaggeorge and others added 2 commits September 4, 2019 09:08
Co-Authored-By: Sindre Sorhus <sindresorhus@gmail.com>
@kevincannon
Copy link

kevincannon commented Sep 4, 2019

Just tested this and it worked for me! 💪💪

@karaggeorge karaggeorge merged commit 3551779 into master Sep 6, 2019
@karaggeorge karaggeorge deleted the fix-recording-with-sound branch September 6, 2019 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants