ofSoundPlayer instances


I am currently working on a step sequencer project.
I have Track objects that is consist of StepButton objects,
and every track has an ofSoundPlayer instance property.
My problem/question is that i couldn’t make every track play their own file.
I initialize the objects with correct paths to sound files,
but they still insist on playing the last sound loaded.

Is there anything that i might be missing?

By the way, when i use soundPlayer.loadSound(“path”); method, i get a “Couldn’t set thread priority” message in console.

Source code:

Thanks in advance!

Sorry, i found the solution when i searched for similar topics in the forums.
I should be more patient next time.


Thanks, anyways!