Exemplo n.º 1
0
int w_stop(lua_State *L)
{
	if (lua_gettop(L) == 0)
	{
		instance()->stop();
	}
	else
	{
		Source *s = luax_checksource(L, 1);
		s->stop();
	}
	return 0;
}
Exemplo n.º 2
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;
	}
Exemplo n.º 3
0
int w_play(lua_State *L)
{
	Source *s = luax_checksource(L, 1);
	luax_pushboolean(L, instance()->play(s));
	return 1;
}
Exemplo n.º 4
0
	int w_play(lua_State * L)
	{
		Source * s = luax_checksource(L, 1);
		instance->play(s);
		return 0;
	}