 
   setDirection: (self) ->
 
-  setLooping: (self) ->
+  setLooping: (self, looping) ->
+    self.element.setAttribute("loop", looping)
 
   setPitch: (self) ->
 

  getVelocity: (self) ->

  getVolume: (self) ->

  getVolumeLimits: (self) ->

  isLooping: (self) ->

  isPaused: (self) ->

  isPlaying: (self) ->

  isRelative: (self) ->

  isStatic: (self) ->

  isStopped: (self) ->

  pause: (self) ->

  play: (self) ->

  resume: (self) ->

  rewind: (self) ->

  seek: (self) ->

  setAttenuationDistances: (self) ->



  setVelocity: (self) ->

  setVolume: (self, volume) ->
    self.element.volume = volume

  setVolumeLimits: (self) ->

  stop: (self) ->
    self.element.load()

  tell: (self, time_unit = "seconds") ->
    switch time_unit
      when "seconds" then self.element.currentTime
      when "samples" then 0
