Function demonstration

Pidog assembled and working, but when I try to run function demonstration, it does not work, but gives me an error “ALSA lib pcm.c:8570:(snd_pcm_recover) underrun occurred”.

Solution?

Did the error occur when running the 2_function_demonstration.py example directly? Or did it appear only after successfully running the example and then using a specific function? Are other functions working properly?

Please especially check if the sound-related examples are functioning normally.

If available, we recommend providing screenshots of the complete error message.

If this error appears but the example functions can still run normally, it can be safely ignored.

I updated everything and reran “sudo bash i2samp.sh”. Speaker test worked fine.
When I run “sudo python3 2_function_demonstration.py” I no longer see the underrun error, but
I get the following screen in the terminal:


I
Nothing happens when I hit any number and can only get back to the prompt with a ^C.

All other “Fun Python projects” work perfectly.

Thank you for the help.

Update - stupid error on my part. I was pushing “enter” on my keyboard instead of “return”. Everything now works!

Thank you for your feedback. We hadn’t considered this issue previously. Let me check if we can make the program compatible with both the Enter and Return keys.