i think ofRemove might be what you're looking for.
i don't use ofSoundPlayer, but if you can have a bool that'd know if the soundPlayer has played or not then running the ofRemove code, testing whether that bool is true or not will then remove the relevant sound player from memory.
↧
Creating and playing multiple ofSoundPlayers when detecting a circle
↧