public virtual void load(AsURLRequest request, AsSoundLoaderContext context) { mRequest = request; mContext = context; String url = request.getUrl(); if (url.StartsWith("http")) { throw new NotImplementedException("Http loading not implemented"); } mSound = BcResFactory.GetInstance().LoadSound(url); AsDebug.assert(mSound != null, url); Debug.WriteLine("Sound loaded: " + url); dispatchEvent(new AsEvent(AsEvent.COMPLETE)); }
public AsSound(AsURLRequest request, AsSoundLoaderContext context) { mRequest = request; mContext = context; }