| 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); |