static int createAudioStream(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { UnityEngine.AnimationCurve arg0 = (UnityEngine.AnimationCurve)ToLua.CheckObject <UnityEngine.AnimationCurve>(L, 1); UnityEngine.AnimationCurve arg1 = (UnityEngine.AnimationCurve)ToLua.CheckObject <UnityEngine.AnimationCurve>(L, 2); LeanAudioStream o = LeanAudio.createAudioStream(arg0, arg1); ToLua.PushObject(L, o); return(1); } else if (count == 3) { UnityEngine.AnimationCurve arg0 = (UnityEngine.AnimationCurve)ToLua.CheckObject <UnityEngine.AnimationCurve>(L, 1); UnityEngine.AnimationCurve arg1 = (UnityEngine.AnimationCurve)ToLua.CheckObject <UnityEngine.AnimationCurve>(L, 2); LeanAudioOptions arg2 = (LeanAudioOptions)ToLua.CheckObject <LeanAudioOptions>(L, 3); LeanAudioStream o = LeanAudio.createAudioStream(arg0, arg1, arg2); ToLua.PushObject(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: LeanAudio.createAudioStream")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static public int constructor(IntPtr l) { try { #if DEBUG var method = System.Reflection.MethodBase.GetCurrentMethod(); string methodName = GetMethodName(method); #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.BeginSample(methodName); #else Profiler.BeginSample(methodName); #endif #endif LeanAudioStream o; System.Single[] a1; checkArray(l, 2, out a1); o = new LeanAudioStream(a1); pushValue(l, true); pushValue(l, o); return(2); } catch (Exception e) { return(error(l, e)); } #if DEBUG finally { #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.EndSample(); #else Profiler.EndSample(); #endif } #endif }
static public int OnAudioSetPosition(IntPtr l) { try { #if DEBUG var method = System.Reflection.MethodBase.GetCurrentMethod(); string methodName = GetMethodName(method); #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.BeginSample(methodName); #else Profiler.BeginSample(methodName); #endif #endif LeanAudioStream self = (LeanAudioStream)checkSelf(l); System.Int32 a1; checkType(l, 2, out a1); self.OnAudioSetPosition(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } #if DEBUG finally { #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.EndSample(); #else Profiler.EndSample(); #endif } #endif }
static public int get_audioClip(IntPtr l) { try { LeanAudioStream self = (LeanAudioStream)checkSelf(l); pushValue(l, true); pushValue(l, self.audioClip); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int set_audioClip(IntPtr l) { try { LeanAudioStream self = (LeanAudioStream)checkSelf(l); UnityEngine.AudioClip v; checkType(l, 2, out v); self.audioClip = v; pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int set_position(IntPtr l) { try { LeanAudioStream self = (LeanAudioStream)checkSelf(l); System.Int32 v; checkType(l, 2, out v); self.position = v; pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int OnAudioSetPosition(IntPtr l) { try { LeanAudioStream self = (LeanAudioStream)checkSelf(l); System.Int32 a1; checkType(l, 2, out a1); self.OnAudioSetPosition(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int OnAudioRead(IntPtr l) { try { LeanAudioStream self = (LeanAudioStream)checkSelf(l); System.Single[] a1; checkArray(l, 2, out a1); self.OnAudioRead(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int set_audioArr(IntPtr l) { try { LeanAudioStream self = (LeanAudioStream)checkSelf(l); System.Single[] v; checkArray(l, 2, out v); self.audioArr = v; pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int constructor(IntPtr l) { try { LeanAudioStream o; System.Single[] a1; checkArray(l, 2, out a1); o = new LeanAudioStream(a1); pushValue(l, true); pushValue(l, o); return(2); } catch (Exception e) { return(error(l, e)); } }
static int createAudioStream(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); UnityEngine.AnimationCurve arg0 = (UnityEngine.AnimationCurve)ToLua.CheckObject(L, 1, typeof(UnityEngine.AnimationCurve)); UnityEngine.AnimationCurve arg1 = (UnityEngine.AnimationCurve)ToLua.CheckObject(L, 2, typeof(UnityEngine.AnimationCurve)); LeanAudioOptions arg2 = (LeanAudioOptions)ToLua.CheckObject(L, 3, typeof(LeanAudioOptions)); LeanAudioStream o = LeanAudio.createAudioStream(arg0, arg1, arg2); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }