MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / SetSEVolume

Method SetSEVolume

LuaSTGPlus/LuaWrapper.cpp:1626–1631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1624 return 0;
1625 }
1626 static int SetSEVolume(lua_State* L)LNOEXCEPT
1627 {
1628 float x = static_cast<float>(luaL_checknumber(L, 1));
1629 LRES.SetGlobalSoundEffectVolume(max(min(x, 1.f), 0.f));
1630 return 0;
1631 }
1632 static int SetBGMVolume(lua_State* L)LNOEXCEPT
1633 {
1634 if (lua_gettop(L) == 1)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected