This site requires JavaScript, please enable it in your browser!
Greenfoot back
acidgranola
acidgranola wrote ...

2021/1/28

getMicLevel not working???

acidgranola acidgranola

2021/1/28

#
I'm doing Exercise 3.33 and the getMicLevel method does not work. How is the program supposed to pick up noise? Is there a setting that I have to first allow permissions to use mic? I can easily record sound and use playSound method so I don't know what I am doing wrong. I'm using Windows 10 and version 3.6.1. Here is my code so far: public class Stickman extends Actor { public void act() { if(Greenfoot.getMicLevel()>3){ move(5); } } }
danpost danpost

2021/1/28

#
acidgranola wrote...
the getMicLevel method does not work. ... I don't know what I am doing wrong. I'm using Windows 10 and version 3.6.1. << Code Omitted >>
There is nothing wrong with the code (tested and works fine -- Windows 7 version 3.1.0). Maybe I should test with an external mic, as well.
You need to login to post a reply.