factories/audio_factory.js
function createMicAnalyser(engine, callback) {
      var entity, node;

      if (!this._context) {
        this._context = new (window.AudioContext || window.webkitAudioContext)();
      }

      entity = new Serpentity.Entity();

      this._getUserMedia({
        audio : true
      }, this._onUserMedia.bind(this, engine, entity, callback), this._onUserMediaError.bind(this, entity, callback))
    }
function createMicAnalyser(engine, callback) {
      var entity, node;

      if (!this._context) {
        this._context = new (window.AudioContext || window.webkitAudioContext)();
      }

      entity = new Serpentity.Entity();

      this._getUserMedia({
        audio : true
      }, this._onUserMedia.bind(this, engine, entity, callback), this._onUserMediaError.bind(this, entity, callback))
    }
/*
Creates a microphone audio node by calling getUserMedia.