static int GetSpectrumData(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); float[] arg0 = ToLua.CheckNumberArray <float>(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); UnityEngine.FFTWindow arg2 = (UnityEngine.FFTWindow)ToLua.CheckObject(L, 3, typeof(UnityEngine.FFTWindow)); UnityEngine.AudioListener.GetSpectrumData(arg0, arg1, arg2); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetSpectrumData(IntPtr L) { try { ToLua.CheckArgsCount(L, 4); UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject <UnityEngine.AudioSource>(L, 1); float[] arg0 = ToLua.CheckNumberArray <float>(L, 2); int arg1 = (int)LuaDLL.luaL_checkinteger(L, 3); UnityEngine.FFTWindow arg2 = (UnityEngine.FFTWindow)ToLua.CheckObject(L, 4, TypeTraits <UnityEngine.FFTWindow> .type); obj.GetSpectrumData(arg0, arg1, arg2); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static StackObject *GetSpectrumData_7(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 3); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.FFTWindow window = (UnityEngine.FFTWindow) typeof(UnityEngine.FFTWindow).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.Int32 channel = ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 3); System.Single[] samples = (System.Single[]) typeof(System.Single[]).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); UnityEngine.AudioListener.GetSpectrumData(samples, channel, window); return(__ret); }