parameters: (self, sound, loop = 0, duration = 0.0, name = None,
                   volume = 1.0, startTime = 0.0, node=None,
                   seamlessLoop=True, listenerNode = None, cutOff = None)
docstring: __init__(sound, loop, name)
docstring_summary: __init__(sound, loop, name)
docstring_tokens: __init__ ( sound loop name )
function: def __init__(self, sound, loop = 0, duration = 0.0, name = None,
                   volume = 1.0, startTime = 0.0, node=None,
                   seamlessLoop=True, listenerNode = None, cutOff = None):
          """__init__(sound, loop, name)
          """
          # Generate unique name
          id = 'Sound-%d' % SoundInterval.soundNum
          SoundInterval.soundNum += 1
          # Record instance variables
          self.sound = sound
          if sound:
              self.soundDuration = sound.length()
          else:
              self.soundDuration = 0
          self.fLoop = loop
          self.volume = volume
          self.startTime = startTime
          self.node = node
          self.listenerNode = listenerNode
          self.cutOff = cutOff
          self._seamlessLoop = seamlessLoop
          if self._seamlessLoop:
              self._fLoop = True
          self._soundPlaying = False
          self._reverse = False
          # If no duration given use sound's duration as interval's duration
          if float(duration) == 0.0 and self.sound is not None:
              duration = max(self.soundDuration - self.startTime, 0)
              #if duration == 0:
              #    self.notify.warning('zero length duration!')
  
  
          # Generate unique name if necessary
          if name is None:
              name = id
          # Initialize superclass
          Interval.Interval.__init__(self, name, duration)
function_tokens: def __init__ ( self , sound , loop = 0 , duration = 0.0 , name = None , volume = 1.0 , startTime = 0.0 , node = None , seamlessLoop = True , listenerNode = None , cutOff = None ) : # Generate unique name id = 'Sound-%d' % SoundInterval . soundNum SoundInterval . soundNum += 1 # Record instance variables self . sound = sound if sound : self . soundDuration = sound . length ( ) else : self . soundDuration = 0 self . fLoop = loop self . volume = volume self . startTime = startTime self . node = node self . listenerNode = listenerNode self . cutOff = cutOff self . _seamlessLoop = seamlessLoop if self . _seamlessLoop : self . _fLoop = True self . _soundPlaying = False self . _reverse = False # If no duration given use sound's duration as interval's duration if float ( duration ) == 0.0 and self . sound is not None : duration = max ( self . soundDuration - self . startTime , 0 ) #if duration == 0: #    self.notify.warning('zero length duration!') # Generate unique name if necessary if name is None : name = id # Initialize superclass Interval . Interval . __init__ ( self , name , duration )