ddf / Minim

A Java audio library, designed to be used with Processing.
http://code.compartmental.net/tools/minim
GNU Lesser General Public License v3.0
668 stars 136 forks source link

The microphone cannot be called in my macbookpro #120

Open barium3 opened 2 years ago

barium3 commented 2 years ago

the mac has given the processing permission in the system preferences but the processing does not respond and no error is reported

barium3 commented 2 years ago

//Test with this code, the value of backgroundCol is always 0.0

import ddf.minim.; import ddf.minim.analysis.; import ddf.minim.effects.; import ddf.minim.signals.; import ddf.minim.spi.; import ddf.minim.ugens.;

Minim sounds; AudioInput microphone;

void setup() { size(500, 500);

sounds = new Minim (this); microphone=sounds.getLineIn(); } void draw() {

float backgroundCol = microphone.mix.level()255.010.0; background(backgroundCol, backgroundCol, backgroundCol); println(backgroundCol); }

jvolker commented 1 year ago

I've got the same issue using the RecordAudioInput example on a MacBook Pro M1 using macOS 12.6.1 using the built-in microphone and Processing 4.0.1.

jvolker commented 1 year ago

There is a working solution described here: https://github.com/ddf/Minim/issues/114#issuecomment-1035060524