lovr.audio.stop properly returns success;

This commit is contained in:
bjorn 2021-03-20 11:57:46 -06:00
parent b1f7a6c11d
commit a1f768e1a3
1 changed files with 3 additions and 2 deletions

View File

@ -103,8 +103,9 @@ static int l_lovrAudioStart(lua_State* L) {
static int l_lovrAudioStop(lua_State* L) {
AudioType type = luax_checkenum(L, 1, AudioType, "playback");
lovrAudioStop(type);
return 0;
bool stopped = lovrAudioStop(type);
lua_pushboolean(L, stopped);
return 1;
}
static int l_lovrAudioIsStarted(lua_State* L) {