protected override void onNewEvent(TBE.Event e, NativeAudioObject obj)
 {
     if (newEvent != null)
     {
         newEvent(e, obj);
     }
 }
Ejemplo n.º 2
0
        public void init()
        {
            if (nativeObj_ != null)
            {
                return;
            }

            nativeObj_ = AudioEngineManager.Instance.nativeEngine.createAudioObject();
            if (nativeObj_ == null)
            {
                Utils.logError("Native audio object is invalid", this);
                return;
            }

            nativeObj_.setEventListener(events);
        }
Ejemplo n.º 3
0
        private void init()
        {
            if (nativeObj_ != null)
            {
                return;
            }

            nativeObj_ = AudioEngineManager.Instance.nativeEngine.createAudioObject();
            if (nativeObj_ == null)
            {
                Utils.logError("Native audio object is invalid", this);
                return;
            }

            thisHandle = GCHandle.Alloc(this);
            nativeObj_.setEventCallback(eventCallback, GCHandle.ToIntPtr(thisHandle));
        }