void THSoundEffects::_onChannelFinish(int iChannel) { THSoundEffects *pThis = getSingleton(); if(pThis == NULL) return; pThis->releaseChannel(iChannel); }
static int l_soundfx_release_channel(lua_State *L) { THSoundEffects *pEffects = luaT_testuserdata<THSoundEffects>(L); pEffects->releaseChannel(luaL_checkinteger(L, 2)); return 1; }