Support to play looped sounds

Added support for looping sounds and added ability to start to play sounds by sending object to the playSound function. Which makes it easier to specify more parameters in the future.

Keep up the good work