@lavit -- thanks for pointing out the looping option in the Sound Library. I'm not sure why the OP chose what he did, but I recommended starting with minim specifically because many projects on game sound end up needing to use Samplers, which minim supports and the Sound Library does not.
Answers
Try the minim library. AudioPlayer has a method "loop."
Yes, I forgot to say, I tried the minim library and it worked perfectly! I meant toput that here, but better late than never!
Hello, I don´t know why you resort to Minim when there is a loop method on the Sound Library https://processing.org/reference/libraries/sound/SoundFile_loop_.html be sure to stop the one sounding and also calling the other with your button function. good day
@lavit -- thanks for pointing out the looping option in the Sound Library. I'm not sure why the OP chose what he did, but I recommended starting with minim specifically because many projects on game sound end up needing to use Samplers, which minim supports and the Sound Library does not.
Well, Minim sure has a bigger set but in terms of sampling and managing files I think they both work the same... but only 70% sure... greets
Yes that is exactly the reason why