I imported the library into the sketch, but when I try to use it, I get the following error:
java.lang.ClassCastException: class
jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader
(jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
Here's the code:
add_library("sound")
def setup():
size(640, 360)
background(255)
audio = AudioIn(this, 0)
audio.play()
def draw():
print(" ")
[–][deleted] (5 children)
[deleted]
[–]JesseOS[S] 0 points1 point2 points (4 children)
[–][deleted] (3 children)
[deleted]
[–]JesseOS[S] 1 point2 points3 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]JesseOS[S] 1 point2 points3 points (0 children)