From 952748a86c4ddf1d7e47b358a64904c35bacd4aa Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 17 Aug 2018 00:15:05 +0800 Subject: *update --- src/lua/audio/luaopen_Source.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/lua/audio/luaopen_Source.cpp') diff --git a/src/lua/audio/luaopen_Source.cpp b/src/lua/audio/luaopen_Source.cpp index b5db88f..25e44b3 100644 --- a/src/lua/audio/luaopen_Source.cpp +++ b/src/lua/audio/luaopen_Source.cpp @@ -18,42 +18,42 @@ namespace lua static int l_play(lua_State* L) { Ref& ref = checkSource(L); - (*ref).play(); + ref->play(); return 0; } static int l_stop(lua_State* L) { Ref& ref = checkSource(L); - (*ref).stop(); + ref->stop(); return 0; } static int l_pause(lua_State* L) { Ref& ref = checkSource(L); - (*ref).pause(); + ref->pause(); return 0; } static int l_rewind(lua_State* L) { Ref& ref = checkSource(L); - (*ref).rewind(); + ref->rewind(); return 0; } static int l_resume(lua_State* L) { Ref& ref = checkSource(L); - (*ref).resume(); + ref->resume(); return 0; } static int l_isStop(lua_State* L) { Ref& ref = checkSource(L); - bool isStop = (*ref).isStopped(); + bool isStop = ref->isStopped(); luax_pushboolean(L, isStop); return 1; } @@ -61,7 +61,7 @@ namespace lua static int l_isPaused(lua_State* L) { Ref& ref = checkSource(L); - bool isPaused = (*ref).isPaused(); + bool isPaused = ref->isPaused(); luax_pushboolean(L, isPaused); return 1; } @@ -70,7 +70,7 @@ namespace lua { Ref& ref = checkSource(L); float volume = luax_checknumber(L, 2); - (*ref).setVolume(volume); + ref->setVolume(volume); return 0; } @@ -78,7 +78,7 @@ namespace lua { Ref& ref = checkSource(L); bool loop = luax_checkbool(L, 2); - (*ref).setLoop(loop); + ref->setLoop(loop); return 0; } -- cgit v1.1-26-g67d0