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

Audio is not working on a macbook with m1 #253

Open
illus0r opened this issue Oct 12, 2021 · 2 comments
Open

Audio is not working on a macbook with m1 #253

illus0r opened this issue Oct 12, 2021 · 2 comments

Comments

@illus0r
Copy link

illus0r commented Oct 12, 2021

This code works on my old mac but gives a black screen on a new one, that uses apple's m1 cpu.

/*
{
  audio: true,
}
*/
precision mediump float;
uniform vec2 resolution;
uniform float volume;
uniform sampler2D samples;
uniform sampler2D spectrum;

void main() {
  vec2 uv = gl_FragCoord.xy/resolution.xy;
  gl_FragColor=texture2D(spectrum,uv);
  gl_FragColor.a=1.;
}

I've added Veda to my Security & Privacy → Accessability list, but I can't add it to the Microphone list, because there are no + button:

I think Veda should've requested access at some point but it didn't.

Atom 1.58.0

@fand
Copy link
Owner

fand commented Apr 13, 2022

I recently got M1 macbookpro and it reproduced on my machine.
I spent a few days to figure out the problem, but still no solution was found.
I'll drop here what I've found so far...

  • This only occurs on Atom / Chrome
    • I run the same code with server mode on (server: 3000) and checked if the problem occurs on browsers.
    • It worked on Safari and Firefox, but didn't work on Chrome
  • TCC
INSERT into access VALUES('kTCCServiceMicrophone',"com.github.atom",0,1,1,1,NULL,NULL,NULL,'UNUSED',NULL,0,1541440109);
INSERT into access VALUES('kTCCServiceCamera',"com.github.atom",0,1,1,1,NULL,NULL,NULL,'UNUSED',NULL,0,1541440109);
INSERT into access VALUES('kTCCServiceMicrophone',"com.github.atom.helper",0,1,1,1,NULL,NULL,NULL,'UNUSED',NULL,0,1541440109);
INSERT into access VALUES('kTCCServiceCamera',"com.github.atom.helper",0,1,1,1,NULL,NULL,NULL,'UNUSED',NULL,0,1541440109);

@xidist
Copy link

xidist commented Nov 18, 2022

I am having this issue as well (also on m1 mac), a year later. Any updates?

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

3 participants