 class Aroma.Audio
   constructor: ->
     @sources = []
-    @url_to_source = {}
     @context = new webkitAudioContext
 
   stop_all: ->

    else
      path

  constructor: (@root) ->
    @file_cache = {}

  get_module: (module_name, callback) ->
    path = module_name.replace /\./g, '/'
    path = "#{path}.lua"
    @get_file path, callback

  get_file: (path, callback) ->
    path = @real_path path

    return callback @file_cache[path] if @file_cache[path]?
    # find loader
    loader = null
    for name, tuple of @loaders
      {match: match, load: load} = tuple
      if match.call this, path
        loader = load
        break

    loader = @default_loader unless loader?
    @on_fail = -> callback null

    loader.call this, path, (result) =>

# c = new Aroma.Font
# console.log c.render_glyph "H"

