play sound / queue sound should respect loop parameters.

Fixes #378.