   #   r = Math.pow(10, decimal || 0)
   #   return Math.round(((total / 100) * percent) * r) / r
 
-  # loop: ->
-
-  # unloop: ->
+  loop: ->
+    @el.loop = 'loop'
+
+  unloop: ->
+    @el.loop = null

    else
      @addSource(@el, src)

    # @loop() if opts.loop
    @el.autoplay = 'autoplay' if opts.autoplay == true
    @el.preload  = if opts.preload == true then 'auto' else 'none'
    @setVolume(opts.volume)

  # --------------------
  @defaults:
    autoplay: false
    duration: -1
    formats: []
    loop: false
    placeholder: '--'
