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

Method StopSound

LuaSTGPlus/LuaWrapper.cpp:1530–1538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1528 return 0;
1529 }
1530 static int StopSound(lua_State* L)LNOEXCEPT
1531 {
1532 const char* s = luaL_checkstring(L, 1);
1533 ResSound* p = LRES.FindSound(s);
1534 if (!p)
1535 return luaL_error(L, "sound '%s' not found.", s);
1536 p->Stop();
1537 return 0;
1538 }
1539 static int PauseSound(lua_State* L)LNOEXCEPT
1540 {
1541 const char* s = luaL_checkstring(L, 1);

Callers

nothing calls this directly

Calls 2

FindSoundMethod · 0.80
StopMethod · 0.45

Tested by

no test coverage detected