Sounds are automatically started in their own thread so you can start it and continue with your program.
So, just your first code block would probably be the way to do it.
Oh ok, i didnt know that, but, each sound starts in their own thread?. Because as a loop pedal, it will have a lot of sound recorded playing at the moment and i need all these sounds start at the same time, so i think each sound need to work in a different thread (not really, im thoght how to do it just with 2 thread).
So, if a have 2 sounds and i need those start at the same time, each sound will start in a different thread? or the SOUND LIBRARY have their own thread?.
The real problem that i have is, when i recorded the first sound, i need that sound playing in the background (as loop) while im recording the second sound, when i finish to record the second sound, both have to play at the same time. Well, the problem is: When i play the first sound and im recording the second one, there is a delay between those, but when i finish to record the second one and they both are playing there is not a delay (but i need to have the tempo on my brain and not listen the first sound).
i hope u can understand me
Thanks for your help!
PS: If someone dont know how a loop pedal works here there is a video:
https://youtu.be/DV0TJZ7Kp40?t=14s