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

Method LoadSound

LuaSTGPlus/LuaWrapper.cpp:900–912  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

898 return 0;
899 }
900 static int LoadSound(lua_State* L)LNOEXCEPT
901 {
902 const char* name = luaL_checkstring(L, 1);
903 const char* path = luaL_checkstring(L, 2);
904
905 ResourcePool* pActivedPool = LRES.GetActivedPool();
906 if (!pActivedPool)
907 return luaL_error(L, "can't load resource at this time.");
908
909 if (!pActivedPool->LoadSound(name, path))
910 return luaL_error(L, "load sound failed (name=%s, path=%s)", name, path);
911 return 0;
912 }
913 static int LoadMusic(lua_State* L)LNOEXCEPT
914 {
915 const char* name = luaL_checkstring(L, 1);

Callers

nothing calls this directly

Calls 1

GetActivedPoolMethod · 0.80

Tested by

no test coverage detected