- [FEAT] A song can lock the audio until finished

This commit is contained in:
2022-12-28 14:07:41 +01:00
parent 9835f4dc4a
commit 40c2b009a9
5 changed files with 19 additions and 10 deletions

View File

@@ -651,7 +651,9 @@ extern "C" {
static int cpp_playchirp(lua_State *L) {
const char* str = luaL_checkstring(L, 1);
playchirp(str);
bool value = false;
if (lua_gettop(L) > 1) value = lua_toboolean(L, 2);
playchirp(str, value);
return 0;
}