|
@@ -190,6 +190,20 @@ int w_Source_getDirection(lua_State *L)
|
|
return 3;
|
|
return 3;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+int w_Source_setRelativePosition(lua_State *L)
|
|
|
|
+{
|
|
|
|
+ Source *t = luax_checksource(L, 1);
|
|
|
|
+ t->setRelativePosition(luax_toboolean(L, 2));
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+int w_Source_hasRelativePosition(lua_State *L)
|
|
|
|
+{
|
|
|
|
+ Source *t = luax_checksource(L, 1);
|
|
|
|
+ luax_pushboolean(L, t->hasRelativePosition());
|
|
|
|
+ return 1;
|
|
|
|
+}
|
|
|
|
+
|
|
int w_Source_setLooping(lua_State *L)
|
|
int w_Source_setLooping(lua_State *L)
|
|
{
|
|
{
|
|
Source *t = luax_checksource(L, 1);
|
|
Source *t = luax_checksource(L, 1);
|
|
@@ -323,6 +337,9 @@ static const luaL_Reg functions[] =
|
|
{ "setDirection", w_Source_setDirection },
|
|
{ "setDirection", w_Source_setDirection },
|
|
{ "getDirection", w_Source_getDirection },
|
|
{ "getDirection", w_Source_getDirection },
|
|
|
|
|
|
|
|
+ { "setRelativePosition", w_Source_setRelativePosition },
|
|
|
|
+ { "hasRelativePosition", w_Source_hasRelativePosition },
|
|
|
|
+
|
|
{ "setLooping", w_Source_setLooping },
|
|
{ "setLooping", w_Source_setLooping },
|
|
{ "isLooping", w_Source_isLooping },
|
|
{ "isLooping", w_Source_isLooping },
|
|
{ "isStopped", w_Source_isStopped },
|
|
{ "isStopped", w_Source_isStopped },
|