protected override void onNewEvent(TBE.Event e, NativeAudioObject obj) { if (newEvent != null) { newEvent(e, obj); } }
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); }
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)); }