Added convenience method for setting number of loops for audio