parameters: (pos, coreconf)
return_statement: return ret_tab
docstring: Return the time step number of the incoming impulse for each sound source
docstring_summary: Return the time step number of the incoming impulse for each sound source
docstring_tokens: Return the time step number of the incoming impulse for each sound source
function: def GetNumStepBySource(pos, coreconf):
      """
          Return the time step number of the incoming impulse for each sound source
      """
      ret_tab = {}
      if coreconf.const["with_direct_sound"]:
          for src in coreconf.sources_lst:
              dist = (pos - src.pos).length()
              ret_tab[src.id] = int(math.floor(dist / (coreconf.const["cel"] * coreconf.const['timestep'])))
      return ret_tab
function_tokens: def GetNumStepBySource ( pos , coreconf ) : ret_tab = { } if coreconf . const [ "with_direct_sound" ] : for src in coreconf . sources_lst : dist = ( pos - src . pos ) . length ( ) ret_tab [ src . id ] = int ( math . floor ( dist / ( coreconf . const [ "cel" ] * coreconf . const [ 'timestep' ] ) ) ) return ret_tab