int w_stop(lua_State *L) { if (lua_gettop(L) == 0) { instance()->stop(); } else { Source *s = luax_checksource(L, 1); s->stop(); } return 0; }
int w_rewind(lua_State * L) { if(lua_gettop(L) == 0) { instance->rewind(); } else { Source * s = luax_checksource(L, 1); s->rewind(); } return 0; }
int w_play(lua_State *L) { Source *s = luax_checksource(L, 1); luax_pushboolean(L, instance()->play(s)); return 1; }
int w_play(lua_State * L) { Source * s = luax_checksource(L, 1); instance->play(s); return 0; }