Added volume control to the playSound function.