static int StartRecordSound(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); ChatVoiceService obj = (ChatVoiceService)ToLua.CheckObject(L, 1, typeof(ChatVoiceService)); obj.StartRecordSound(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetVoice(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); ChatVoiceService obj = (ChatVoiceService)ToLua.CheckObject(L, 1, typeof(ChatVoiceService)); float o = obj.GetVoice(); LuaDLL.lua_pushnumber(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int EndRecordSound(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); ChatVoiceService obj = (ChatVoiceService)ToLua.CheckObject(L, 1, typeof(ChatVoiceService)); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.EndRecordSound(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int CheckMicrophonePermission(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); ChatVoiceService obj = (ChatVoiceService)ToLua.CheckObject(L, 1, typeof(ChatVoiceService)); string arg0 = ToLua.CheckString(L, 2); obj.CheckMicrophonePermission(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int RemoveYuYinData(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); ChatVoiceService obj = (ChatVoiceService)ToLua.CheckObject(L, 1, typeof(ChatVoiceService)); string arg0 = ToLua.CheckString(L, 2); obj.RemoveYuYinData(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetSoundRecogonizeString(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); ChatVoiceService obj = (ChatVoiceService)ToLua.CheckObject(L, 1, typeof(ChatVoiceService)); byte[] arg0 = ToLua.CheckByteBuffer(L, 2); string o = obj.GetSoundRecogonizeString(arg0); LuaDLL.lua_pushstring(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetYuYinDataBySn(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); ChatVoiceService obj = (ChatVoiceService)ToLua.CheckObject(L, 1, typeof(ChatVoiceService)); string arg0 = ToLua.CheckString(L, 2); string o = obj.GetYuYinDataBySn(arg0); LuaDLL.lua_pushstring(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int YuYinClick(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); ChatVoiceService obj = (ChatVoiceService)ToLua.CheckObject(L, 1, typeof(ChatVoiceService)); UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject)); int arg1 = (int)LuaDLL.luaL_checknumber(L, 3); obj.YuYinClick(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_curPrivateCharUid(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ChatVoiceService obj = (ChatVoiceService)o; string arg0 = ToLua.CheckString(L, 2); obj.curPrivateCharUid = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index curPrivateCharUid on a nil value")); } }
static int set_curPrivateCharId(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ChatVoiceService obj = (ChatVoiceService)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.curPrivateCharId = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index curPrivateCharId on a nil value")); } }
static int set_chatUi(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ChatVoiceService obj = (ChatVoiceService)o; UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckObject <UnityEngine.Transform>(L, 2); obj.chatUi = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index chatUi on a nil value")); } }
static int set__audioSource(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ChatVoiceService obj = (ChatVoiceService)o; UnityEngine.AudioSource arg0 = (UnityEngine.AudioSource)ToLua.CheckObject(L, 2, typeof(UnityEngine.AudioSource)); obj._audioSource = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index _audioSource on a nil value")); } }
static int get_curPrivateCharUid(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ChatVoiceService obj = (ChatVoiceService)o; string ret = obj.curPrivateCharUid; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index curPrivateCharUid on a nil value")); } }
static int get_chatUi(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ChatVoiceService obj = (ChatVoiceService)o; UnityEngine.Transform ret = obj.chatUi; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index chatUi on a nil value")); } }
static int get_curShowPanel(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ChatVoiceService obj = (ChatVoiceService)o; int ret = obj.curShowPanel; LuaDLL.lua_pushinteger(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index curShowPanel on a nil value")); } }
static int get__audioSource(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ChatVoiceService obj = (ChatVoiceService)o; UnityEngine.AudioSource ret = obj._audioSource; ToLua.PushSealed(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index _audioSource on a nil value")); } }