Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Audio not working!

$
0
0

Hi guys, I'm super new to Processing so the solution is probably something obvious.

I'm trying to create a sketch which wouldplay a show a different image and play a different song depending on where the mouse is positioned. I managed to write a code which would work depending where the mouse is pressed. So i decided to use that same code but to try and make it work depending on where the mouse is postioned. But when i took away the "void mousepressed' function and joined the code into "void draw" only the images change with the position of the mouse, the audiofiles don't really play... Only the first couple of seconds of the first audio plays before restarting itself and whenever I move the mouse around i can hear random low noises (i guess of the audios trying to play, i'm not sure). I'm super confused by this and would be grateful if anyone could help me!


Viewing all articles
Browse latest Browse all 2896

Trending Articles