View | Details | Raw Unified
Collapse All | Expand All

(-) script/lua.org/luainterface.cpp (-6 / +7 lines)
 Lines 1-6    Link Here 
#include "luainterface.h"
#include "luainterface.h"
#include "../scriptengine.h"
#include "../scriptengine.h"
#include <tolua.h>
#include <tolua++.h>
#include <string.h>
#include <string.h>
#include "../controlobject.h"
#include "../controlobject.h"
 Lines 18-28    Link Here 
	qDebug("Creating Lua interpreter...");
	qDebug("Creating Lua interpreter...");
	m_L = lua_open();
	m_L = lua_open();
	
	
	luaopen_base(m_L);
	//luaopen_base(m_L);
	luaopen_table(m_L);
	//luaopen_table(m_L);
	luaopen_io(m_L);
	//luaopen_io(m_L);
	luaopen_string(m_L);
	//luaopen_string(m_L);
	luaopen_math(m_L);
	//luaopen_math(m_L);
	luaL_openlibs(m_L);
	
	
	tolua_mixxx_open(m_L);
	tolua_mixxx_open(m_L);
	
	
(-) mixxx.pro.org (-181 / +227 lines)
 Lines 1-6    Link Here 
/*
/*
** Lua binding: mixxx
** Lua binding: mixxx
** Generated automatically by tolua 5.0a on Sun Feb 19 16:28:07 2006.
** Generated automatically by tolua++-1.0.92 on Tue Oct  2 09:46:57 2007.
*/
*/
#ifndef __cplusplus
#ifndef __cplusplus
 Lines 8-17    Link Here 
#endif
#endif
#include "string.h"
#include "string.h"
#include "tolua.h"
#include "tolua++.h"
/* Exported function */
/* Exported function */
TOLUA_API int tolua_mixxx_open (lua_State* tolua_S);
TOLUA_API int  tolua_mixxx_open (lua_State* tolua_S);
#include "../playinterface.h"
#include "../playinterface.h"
#include "../scriptengine.h"
#include "../scriptengine.h"
 Lines 23-47    Link Here 
}
}
/* method: test of class  PlayInterface */
/* method: test of class  PlayInterface */
#ifndef TOLUA_DISABLE_tolua_mixxx_PlayInterface_test00
static int tolua_mixxx_PlayInterface_test00(lua_State* tolua_S)
static int tolua_mixxx_PlayInterface_test00(lua_State* tolua_S)
{
{
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 tolua_Error tolua_err;
 if (
 if (
 !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
     !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
 !tolua_isnoobj(tolua_S,2,&tolua_err)
     !tolua_isnoobj(tolua_S,2,&tolua_err)
 )
 )
 goto tolua_lerror;
  goto tolua_lerror;
 else
 else
#endif
#endif
 {
 {
  PlayInterface* self = (PlayInterface*)  tolua_tousertype(tolua_S,1,0);
  PlayInterface* self = (PlayInterface*)  tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'test'",NULL);
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'test'",NULL);
#endif
#endif
 {
  {
  self->test();
   self->test();
 }
  }
 }
 }
 return 0;
 return 0;
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 Lines 50-78    Link Here 
 return 0;
 return 0;
#endif
#endif
}
}
#endif //#ifndef TOLUA_DISABLE
/* method: stop of class  PlayInterface */
/* method: stop of class  PlayInterface */
#ifndef TOLUA_DISABLE_tolua_mixxx_PlayInterface_stop00
static int tolua_mixxx_PlayInterface_stop00(lua_State* tolua_S)
static int tolua_mixxx_PlayInterface_stop00(lua_State* tolua_S)
{
{
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 tolua_Error tolua_err;
 if (
 if (
 !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
     !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
     !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
 !tolua_isnoobj(tolua_S,3,&tolua_err)
     !tolua_isnoobj(tolua_S,3,&tolua_err)
 )
 )
 goto tolua_lerror;
  goto tolua_lerror;
 else
 else
#endif
#endif
 {
 {
  PlayInterface* self = (PlayInterface*)  tolua_tousertype(tolua_S,1,0);
  PlayInterface* self = (PlayInterface*)  tolua_tousertype(tolua_S,1,0);
  int channel = ((int)  tolua_tonumber(tolua_S,2,0));
  int channel = ((int)  tolua_tonumber(tolua_S,2,0));
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'stop'",NULL);
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'stop'",NULL);
#endif
#endif
 {
  {
  self->stop(channel);
   self->stop(channel);
 }
  }
 }
 }
 return 0;
 return 0;
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 Lines 81-109    Link Here 
 return 0;
 return 0;
#endif
#endif
}
}
#endif //#ifndef TOLUA_DISABLE
/* method: play of class  PlayInterface */
/* method: play of class  PlayInterface */
#ifndef TOLUA_DISABLE_tolua_mixxx_PlayInterface_play00
static int tolua_mixxx_PlayInterface_play00(lua_State* tolua_S)
static int tolua_mixxx_PlayInterface_play00(lua_State* tolua_S)
{
{
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 tolua_Error tolua_err;
 if (
 if (
 !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
     !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
     !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
 !tolua_isnoobj(tolua_S,3,&tolua_err)
     !tolua_isnoobj(tolua_S,3,&tolua_err)
 )
 )
 goto tolua_lerror;
  goto tolua_lerror;
 else
 else
#endif
#endif
 {
 {
  PlayInterface* self = (PlayInterface*)  tolua_tousertype(tolua_S,1,0);
  PlayInterface* self = (PlayInterface*)  tolua_tousertype(tolua_S,1,0);
  int channel = ((int)  tolua_tonumber(tolua_S,2,0));
  int channel = ((int)  tolua_tonumber(tolua_S,2,0));
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'play'",NULL);
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'play'",NULL);
#endif
#endif
 {
  {
  self->play(channel);
   self->play(channel);
 }
  }
 }
 }
 return 0;
 return 0;
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 Lines 112-140    Link Here 
 return 0;
 return 0;
#endif
#endif
}
}
#endif //#ifndef TOLUA_DISABLE
/* method: setFader of class  PlayInterface */
/* method: setFader of class  PlayInterface */
#ifndef TOLUA_DISABLE_tolua_mixxx_PlayInterface_setFader00
static int tolua_mixxx_PlayInterface_setFader00(lua_State* tolua_S)
static int tolua_mixxx_PlayInterface_setFader00(lua_State* tolua_S)
{
{
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 tolua_Error tolua_err;
 if (
 if (
 !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
     !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
     !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
 !tolua_isnoobj(tolua_S,3,&tolua_err)
     !tolua_isnoobj(tolua_S,3,&tolua_err)
 )
 )
 goto tolua_lerror;
  goto tolua_lerror;
 else
 else
#endif
#endif
 {
 {
  PlayInterface* self = (PlayInterface*)  tolua_tousertype(tolua_S,1,0);
  PlayInterface* self = (PlayInterface*)  tolua_tousertype(tolua_S,1,0);
  double fade = ((double)  tolua_tonumber(tolua_S,2,0));
  double fade = ((double)  tolua_tonumber(tolua_S,2,0));
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setFader'",NULL);
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setFader'",NULL);
#endif
#endif
 {
  {
  self->setFader(fade);
   self->setFader(fade);
 }
  }
 }
 }
 return 0;
 return 0;
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 Lines 143-171    Link Here 
 return 0;
 return 0;
#endif
#endif
}
}
#endif //#ifndef TOLUA_DISABLE
/* method: setTag of class  PlayInterface */
/* method: setTag of class  PlayInterface */
#ifndef TOLUA_DISABLE_tolua_mixxx_PlayInterface_setTag00
static int tolua_mixxx_PlayInterface_setTag00(lua_State* tolua_S)
static int tolua_mixxx_PlayInterface_setTag00(lua_State* tolua_S)
{
{
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 tolua_Error tolua_err;
 if (
 if (
 !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
     !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
     !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
 !tolua_isnoobj(tolua_S,3,&tolua_err)
     !tolua_isnoobj(tolua_S,3,&tolua_err)
 )
 )
 goto tolua_lerror;
  goto tolua_lerror;
 else
 else
#endif
#endif
 {
 {
  PlayInterface* self = (PlayInterface*)  tolua_tousertype(tolua_S,1,0);
  PlayInterface* self = (PlayInterface*)  tolua_tousertype(tolua_S,1,0);
  int tag = ((int)  tolua_tonumber(tolua_S,2,0));
  int tag = ((int)  tolua_tonumber(tolua_S,2,0));
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setTag'",NULL);
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setTag'",NULL);
#endif
#endif
 {
  {
  self->setTag(tag);
   self->setTag(tag);
 }
  }
 }
 }
 return 0;
 return 0;
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 Lines 174-200    Link Here 
 return 0;
 return 0;
#endif
#endif
}
}
#endif //#ifndef TOLUA_DISABLE
/* method: clearTag of class  PlayInterface */
/* method: clearTag of class  PlayInterface */
#ifndef TOLUA_DISABLE_tolua_mixxx_PlayInterface_clearTag00
static int tolua_mixxx_PlayInterface_clearTag00(lua_State* tolua_S)
static int tolua_mixxx_PlayInterface_clearTag00(lua_State* tolua_S)
{
{
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 tolua_Error tolua_err;
 if (
 if (
 !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
     !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
 !tolua_isnoobj(tolua_S,2,&tolua_err)
     !tolua_isnoobj(tolua_S,2,&tolua_err)
 )
 )
 goto tolua_lerror;
  goto tolua_lerror;
 else
 else
#endif
#endif
 {
 {
  PlayInterface* self = (PlayInterface*)  tolua_tousertype(tolua_S,1,0);
  PlayInterface* self = (PlayInterface*)  tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'clearTag'",NULL);
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'clearTag'",NULL);
#endif
#endif
 {
  {
  self->clearTag();
   self->clearTag();
 }
  }
 }
 }
 return 0;
 return 0;
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 Lines 203-229    Link Here 
 return 0;
 return 0;
#endif
#endif
}
}
#endif //#ifndef TOLUA_DISABLE
/* method: kill of class  PlayInterface */
/* method: kill of class  PlayInterface */
#ifndef TOLUA_DISABLE_tolua_mixxx_PlayInterface_kill00
static int tolua_mixxx_PlayInterface_kill00(lua_State* tolua_S)
static int tolua_mixxx_PlayInterface_kill00(lua_State* tolua_S)
{
{
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 tolua_Error tolua_err;
 if (
 if (
 !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
     !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
 !tolua_isnoobj(tolua_S,2,&tolua_err)
     !tolua_isnoobj(tolua_S,2,&tolua_err)
 )
 )
 goto tolua_lerror;
  goto tolua_lerror;
 else
 else
#endif
#endif
 {
 {
  PlayInterface* self = (PlayInterface*)  tolua_tousertype(tolua_S,1,0);
  PlayInterface* self = (PlayInterface*)  tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'kill'",NULL);
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'kill'",NULL);
#endif
#endif
 {
  {
  self->kill();
   self->kill();
 }
  }
 }
 }
 return 0;
 return 0;
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 Lines 232-260    Link Here 
 return 0;
 return 0;
#endif
#endif
}
}
#endif //#ifndef TOLUA_DISABLE
/* method: killTag of class  PlayInterface */
/* method: killTag of class  PlayInterface */
#ifndef TOLUA_DISABLE_tolua_mixxx_PlayInterface_killTag00
static int tolua_mixxx_PlayInterface_killTag00(lua_State* tolua_S)
static int tolua_mixxx_PlayInterface_killTag00(lua_State* tolua_S)
{
{
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 tolua_Error tolua_err;
 if (
 if (
 !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
     !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
     !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
 !tolua_isnoobj(tolua_S,3,&tolua_err)
     !tolua_isnoobj(tolua_S,3,&tolua_err)
 )
 )
 goto tolua_lerror;
  goto tolua_lerror;
 else
 else
#endif
#endif
 {
 {
  PlayInterface* self = (PlayInterface*)  tolua_tousertype(tolua_S,1,0);
  PlayInterface* self = (PlayInterface*)  tolua_tousertype(tolua_S,1,0);
  int tag = ((int)  tolua_tonumber(tolua_S,2,0));
  int tag = ((int)  tolua_tonumber(tolua_S,2,0));
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'killTag'",NULL);
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'killTag'",NULL);
#endif
#endif
 {
  {
  self->killTag(tag);
   self->killTag(tag);
 }
  }
 }
 }
 return 0;
 return 0;
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 Lines 263-290    Link Here 
 return 0;
 return 0;
#endif
#endif
}
}
#endif //#ifndef TOLUA_DISABLE
/* method: getFader of class  PlayInterface */
/* method: getFader of class  PlayInterface */
#ifndef TOLUA_DISABLE_tolua_mixxx_PlayInterface_getFader00
static int tolua_mixxx_PlayInterface_getFader00(lua_State* tolua_S)
static int tolua_mixxx_PlayInterface_getFader00(lua_State* tolua_S)
{
{
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 tolua_Error tolua_err;
 if (
 if (
 !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
     !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
 !tolua_isnoobj(tolua_S,2,&tolua_err)
     !tolua_isnoobj(tolua_S,2,&tolua_err)
 )
 )
 goto tolua_lerror;
  goto tolua_lerror;
 else
 else
#endif
#endif
 {
 {
  PlayInterface* self = (PlayInterface*)  tolua_tousertype(tolua_S,1,0);
  PlayInterface* self = (PlayInterface*)  tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getFader'",NULL);
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getFader'",NULL);
#endif
#endif
 {
  {
  double tolua_ret = (double)  self->getFader();
   double tolua_ret = (double)  self->getFader();
 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
   tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
 }
  }
 }
 }
 return 1;
 return 1;
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 Lines 293-311    Link Here 
 return 0;
 return 0;
#endif
#endif
}
}
#endif //#ifndef TOLUA_DISABLE
/* method: getValue of class  PlayInterface */
/* method: getValue of class  PlayInterface */
#ifndef TOLUA_DISABLE_tolua_mixxx_PlayInterface_getValue00
static int tolua_mixxx_PlayInterface_getValue00(lua_State* tolua_S)
static int tolua_mixxx_PlayInterface_getValue00(lua_State* tolua_S)
{
{
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 tolua_Error tolua_err;
 if (
 if (
 !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
     !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
     !tolua_isstring(tolua_S,2,0,&tolua_err) ||
 !tolua_isstring(tolua_S,3,0,&tolua_err) ||
     !tolua_isstring(tolua_S,3,0,&tolua_err) ||
 !tolua_isnoobj(tolua_S,4,&tolua_err)
     !tolua_isnoobj(tolua_S,4,&tolua_err)
 )
 )
 goto tolua_lerror;
  goto tolua_lerror;
 else
 else
#endif
#endif
 {
 {
 Lines 313-324    Link Here 
  const char* group = ((const char*)  tolua_tostring(tolua_S,2,0));
  const char* group = ((const char*)  tolua_tostring(tolua_S,2,0));
  const char* name = ((const char*)  tolua_tostring(tolua_S,3,0));
  const char* name = ((const char*)  tolua_tostring(tolua_S,3,0));
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getValue'",NULL);
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getValue'",NULL);
#endif
#endif
 {
  {
  double tolua_ret = (double)  self->getValue(group,name);
   double tolua_ret = (double)  self->getValue(group,name);
 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
   tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
 }
  }
 }
 }
 return 1;
 return 1;
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 Lines 327-353    Link Here 
 return 0;
 return 0;
#endif
#endif
}
}
#endif //#ifndef TOLUA_DISABLE
/* method: startFadeCrossfader of class  PlayInterface */
/* method: startFadeCrossfader of class  PlayInterface */
#ifndef TOLUA_DISABLE_tolua_mixxx_PlayInterface_startFadeCrossfader00
static int tolua_mixxx_PlayInterface_startFadeCrossfader00(lua_State* tolua_S)
static int tolua_mixxx_PlayInterface_startFadeCrossfader00(lua_State* tolua_S)
{
{
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 tolua_Error tolua_err;
 if (
 if (
 !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
     !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
 !tolua_isnoobj(tolua_S,2,&tolua_err)
     !tolua_isnoobj(tolua_S,2,&tolua_err)
 )
 )
 goto tolua_lerror;
  goto tolua_lerror;
 else
 else
#endif
#endif
 {
 {
  PlayInterface* self = (PlayInterface*)  tolua_tousertype(tolua_S,1,0);
  PlayInterface* self = (PlayInterface*)  tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'startFadeCrossfader'",NULL);
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'startFadeCrossfader'",NULL);
#endif
#endif
 {
  {
  self->startFadeCrossfader();
   self->startFadeCrossfader();
 }
  }
 }
 }
 return 0;
 return 0;
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 Lines 356-374    Link Here 
 return 0;
 return 0;
#endif
#endif
}
}
#endif //#ifndef TOLUA_DISABLE
/* method: startList of class  PlayInterface */
/* method: startList of class  PlayInterface */
#ifndef TOLUA_DISABLE_tolua_mixxx_PlayInterface_startList00
static int tolua_mixxx_PlayInterface_startList00(lua_State* tolua_S)
static int tolua_mixxx_PlayInterface_startList00(lua_State* tolua_S)
{
{
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 tolua_Error tolua_err;
 if (
 if (
 !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
     !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
     !tolua_isstring(tolua_S,2,0,&tolua_err) ||
 !tolua_isstring(tolua_S,3,0,&tolua_err) ||
     !tolua_isstring(tolua_S,3,0,&tolua_err) ||
 !tolua_isnoobj(tolua_S,4,&tolua_err)
     !tolua_isnoobj(tolua_S,4,&tolua_err)
 )
 )
 goto tolua_lerror;
  goto tolua_lerror;
 else
 else
#endif
#endif
 {
 {
 Lines 376-386    Link Here 
  const char* group = ((const char*)  tolua_tostring(tolua_S,2,0));
  const char* group = ((const char*)  tolua_tostring(tolua_S,2,0));
  const char* name = ((const char*)  tolua_tostring(tolua_S,3,0));
  const char* name = ((const char*)  tolua_tostring(tolua_S,3,0));
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'startList'",NULL);
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'startList'",NULL);
#endif
#endif
 {
  {
  self->startList(group,name);
   self->startList(group,name);
 }
  }
 }
 }
 return 0;
 return 0;
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 Lines 389-407    Link Here 
 return 0;
 return 0;
#endif
#endif
}
}
#endif //#ifndef TOLUA_DISABLE
/* method: startFade of class  PlayInterface */
/* method: startFade of class  PlayInterface */
#ifndef TOLUA_DISABLE_tolua_mixxx_PlayInterface_startFade00
static int tolua_mixxx_PlayInterface_startFade00(lua_State* tolua_S)
static int tolua_mixxx_PlayInterface_startFade00(lua_State* tolua_S)
{
{
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 tolua_Error tolua_err;
 if (
 if (
 !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
     !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
     !tolua_isstring(tolua_S,2,0,&tolua_err) ||
 !tolua_isstring(tolua_S,3,0,&tolua_err) ||
     !tolua_isstring(tolua_S,3,0,&tolua_err) ||
 !tolua_isnoobj(tolua_S,4,&tolua_err)
     !tolua_isnoobj(tolua_S,4,&tolua_err)
 )
 )
 goto tolua_lerror;
  goto tolua_lerror;
 else
 else
#endif
#endif
 {
 {
 Lines 409-419    Link Here 
  const char* group = ((const char*)  tolua_tostring(tolua_S,2,0));
  const char* group = ((const char*)  tolua_tostring(tolua_S,2,0));
  const char* name = ((const char*)  tolua_tostring(tolua_S,3,0));
  const char* name = ((const char*)  tolua_tostring(tolua_S,3,0));
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'startFade'",NULL);
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'startFade'",NULL);
#endif
#endif
 {
  {
  self->startFade(group,name);
   self->startFade(group,name);
 }
  }
 }
 }
 return 0;
 return 0;
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 Lines 422-440    Link Here 
 return 0;
 return 0;
#endif
#endif
}
}
#endif //#ifndef TOLUA_DISABLE
/* method: point of class  PlayInterface */
/* method: point of class  PlayInterface */
#ifndef TOLUA_DISABLE_tolua_mixxx_PlayInterface_point00
static int tolua_mixxx_PlayInterface_point00(lua_State* tolua_S)
static int tolua_mixxx_PlayInterface_point00(lua_State* tolua_S)
{
{
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 tolua_Error tolua_err;
 if (
 if (
 !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
     !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
     !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
     !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
 !tolua_isnoobj(tolua_S,4,&tolua_err)
     !tolua_isnoobj(tolua_S,4,&tolua_err)
 )
 )
 goto tolua_lerror;
  goto tolua_lerror;
 else
 else
#endif
#endif
 {
 {
 Lines 442-452    Link Here 
  int time = ((int)  tolua_tonumber(tolua_S,2,0));
  int time = ((int)  tolua_tonumber(tolua_S,2,0));
  double value = ((double)  tolua_tonumber(tolua_S,3,0));
  double value = ((double)  tolua_tonumber(tolua_S,3,0));
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'point'",NULL);
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'point'",NULL);
#endif
#endif
 {
  {
  self->point(time,value);
   self->point(time,value);
 }
  }
 }
 }
 return 0;
 return 0;
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 Lines 455-473    Link Here 
 return 0;
 return 0;
#endif
#endif
}
}
#endif //#ifndef TOLUA_DISABLE
/* method: fadePoint of class  PlayInterface */
/* method: fadePoint of class  PlayInterface */
#ifndef TOLUA_DISABLE_tolua_mixxx_PlayInterface_fadePoint00
static int tolua_mixxx_PlayInterface_fadePoint00(lua_State* tolua_S)
static int tolua_mixxx_PlayInterface_fadePoint00(lua_State* tolua_S)
{
{
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 tolua_Error tolua_err;
 if (
 if (
 !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
     !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
     !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
     !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
 !tolua_isnoobj(tolua_S,4,&tolua_err)
     !tolua_isnoobj(tolua_S,4,&tolua_err)
 )
 )
 goto tolua_lerror;
  goto tolua_lerror;
 else
 else
#endif
#endif
 {
 {
 Lines 475-485    Link Here 
  int time = ((int)  tolua_tonumber(tolua_S,2,0));
  int time = ((int)  tolua_tonumber(tolua_S,2,0));
  double value = ((double)  tolua_tonumber(tolua_S,3,0));
  double value = ((double)  tolua_tonumber(tolua_S,3,0));
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'fadePoint'",NULL);
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'fadePoint'",NULL);
#endif
#endif
 {
  {
  self->fadePoint(time,value);
   self->fadePoint(time,value);
 }
  }
 }
 }
 return 0;
 return 0;
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 Lines 488-514    Link Here 
 return 0;
 return 0;
#endif
#endif
}
}
#endif //#ifndef TOLUA_DISABLE
/* method: endFade of class  PlayInterface */
/* method: endFade of class  PlayInterface */
#ifndef TOLUA_DISABLE_tolua_mixxx_PlayInterface_endFade00
static int tolua_mixxx_PlayInterface_endFade00(lua_State* tolua_S)
static int tolua_mixxx_PlayInterface_endFade00(lua_State* tolua_S)
{
{
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 tolua_Error tolua_err;
 if (
 if (
 !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
     !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
 !tolua_isnoobj(tolua_S,2,&tolua_err)
     !tolua_isnoobj(tolua_S,2,&tolua_err)
 )
 )
 goto tolua_lerror;
  goto tolua_lerror;
 else
 else
#endif
#endif
 {
 {
  PlayInterface* self = (PlayInterface*)  tolua_tousertype(tolua_S,1,0);
  PlayInterface* self = (PlayInterface*)  tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'endFade'",NULL);
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'endFade'",NULL);
#endif
#endif
 {
  {
  self->endFade();
   self->endFade();
 }
  }
 }
 }
 return 0;
 return 0;
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 Lines 517-543    Link Here 
 return 0;
 return 0;
#endif
#endif
}
}
#endif //#ifndef TOLUA_DISABLE
/* method: endList of class  PlayInterface */
/* method: endList of class  PlayInterface */
#ifndef TOLUA_DISABLE_tolua_mixxx_PlayInterface_endList00
static int tolua_mixxx_PlayInterface_endList00(lua_State* tolua_S)
static int tolua_mixxx_PlayInterface_endList00(lua_State* tolua_S)
{
{
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 tolua_Error tolua_err;
 if (
 if (
 !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
     !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
 !tolua_isnoobj(tolua_S,2,&tolua_err)
     !tolua_isnoobj(tolua_S,2,&tolua_err)
 )
 )
 goto tolua_lerror;
  goto tolua_lerror;
 else
 else
#endif
#endif
 {
 {
  PlayInterface* self = (PlayInterface*)  tolua_tousertype(tolua_S,1,0);
  PlayInterface* self = (PlayInterface*)  tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'endList'",NULL);
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'endList'",NULL);
#endif
#endif
 {
  {
  self->endList();
   self->endList();
 }
  }
 }
 }
 return 0;
 return 0;
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 Lines 546-564    Link Here 
 return 0;
 return 0;
#endif
#endif
}
}
#endif //#ifndef TOLUA_DISABLE
/* method: playChannel1 of class  PlayInterface */
/* method: playChannel1 of class  PlayInterface */
#ifndef TOLUA_DISABLE_tolua_mixxx_PlayInterface_playChannel100
static int tolua_mixxx_PlayInterface_playChannel100(lua_State* tolua_S)
static int tolua_mixxx_PlayInterface_playChannel100(lua_State* tolua_S)
{
{
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 tolua_Error tolua_err;
 if (
 if (
 !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
     !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
     !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
 !tolua_isstring(tolua_S,3,0,&tolua_err) ||
     !tolua_isstring(tolua_S,3,0,&tolua_err) ||
 !tolua_isnoobj(tolua_S,4,&tolua_err)
     !tolua_isnoobj(tolua_S,4,&tolua_err)
 )
 )
 goto tolua_lerror;
  goto tolua_lerror;
 else
 else
#endif
#endif
 {
 {
 Lines 566-576    Link Here 
  int time = ((int)  tolua_tonumber(tolua_S,2,0));
  int time = ((int)  tolua_tonumber(tolua_S,2,0));
  char* path = ((char*)  tolua_tostring(tolua_S,3,0));
  char* path = ((char*)  tolua_tostring(tolua_S,3,0));
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'playChannel1'",NULL);
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'playChannel1'",NULL);
#endif
#endif
 {
  {
  self->playChannel1(time,path);
   self->playChannel1(time,path);
 }
  }
 }
 }
 return 0;
 return 0;
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 Lines 579-597    Link Here 
 return 0;
 return 0;
#endif
#endif
}
}
#endif //#ifndef TOLUA_DISABLE
/* method: playChannel2 of class  PlayInterface */
/* method: playChannel2 of class  PlayInterface */
#ifndef TOLUA_DISABLE_tolua_mixxx_PlayInterface_playChannel200
static int tolua_mixxx_PlayInterface_playChannel200(lua_State* tolua_S)
static int tolua_mixxx_PlayInterface_playChannel200(lua_State* tolua_S)
{
{
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 tolua_Error tolua_err;
 if (
 if (
 !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
     !tolua_isusertype(tolua_S,1,"PlayInterface",0,&tolua_err) ||
 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
     !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
 !tolua_isstring(tolua_S,3,0,&tolua_err) ||
     !tolua_isstring(tolua_S,3,0,&tolua_err) ||
 !tolua_isnoobj(tolua_S,4,&tolua_err)
     !tolua_isnoobj(tolua_S,4,&tolua_err)
 )
 )
 goto tolua_lerror;
  goto tolua_lerror;
 else
 else
#endif
#endif
 {
 {
 Lines 599-609    Link Here 
  int time = ((int)  tolua_tonumber(tolua_S,2,0));
  int time = ((int)  tolua_tonumber(tolua_S,2,0));
  char* path = ((char*)  tolua_tostring(tolua_S,3,0));
  char* path = ((char*)  tolua_tostring(tolua_S,3,0));
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'playChannel2'",NULL);
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'playChannel2'",NULL);
#endif
#endif
 {
  {
  self->playChannel2(time,path);
   self->playChannel2(time,path);
 }
  }
 }
 }
 return 0;
 return 0;
#ifndef TOLUA_RELEASE
#ifndef TOLUA_RELEASE
 Lines 612-617    Link Here 
 return 0;
 return 0;
#endif
#endif
}
}
#endif //#ifndef TOLUA_DISABLE
/* Open function */
/* Open function */
TOLUA_API int tolua_mixxx_open (lua_State* tolua_S)
TOLUA_API int tolua_mixxx_open (lua_State* tolua_S)
 Lines 620-647    Link Here 
 tolua_reg_types(tolua_S);
 tolua_reg_types(tolua_S);
 tolua_module(tolua_S,NULL,0);
 tolua_module(tolua_S,NULL,0);
 tolua_beginmodule(tolua_S,NULL);
 tolua_beginmodule(tolua_S,NULL);
 tolua_cclass(tolua_S,"PlayInterface","PlayInterface","",NULL);
  tolua_cclass(tolua_S,"PlayInterface","PlayInterface","",NULL);
 tolua_beginmodule(tolua_S,"PlayInterface");
  tolua_beginmodule(tolua_S,"PlayInterface");
 tolua_function(tolua_S,"test",tolua_mixxx_PlayInterface_test00);
   tolua_function(tolua_S,"test",tolua_mixxx_PlayInterface_test00);
 tolua_function(tolua_S,"stop",tolua_mixxx_PlayInterface_stop00);
   tolua_function(tolua_S,"stop",tolua_mixxx_PlayInterface_stop00);
 tolua_function(tolua_S,"play",tolua_mixxx_PlayInterface_play00);
   tolua_function(tolua_S,"play",tolua_mixxx_PlayInterface_play00);
 tolua_function(tolua_S,"setFader",tolua_mixxx_PlayInterface_setFader00);
   tolua_function(tolua_S,"setFader",tolua_mixxx_PlayInterface_setFader00);
 tolua_function(tolua_S,"setTag",tolua_mixxx_PlayInterface_setTag00);
   tolua_function(tolua_S,"setTag",tolua_mixxx_PlayInterface_setTag00);
 tolua_function(tolua_S,"clearTag",tolua_mixxx_PlayInterface_clearTag00);
   tolua_function(tolua_S,"clearTag",tolua_mixxx_PlayInterface_clearTag00);
 tolua_function(tolua_S,"kill",tolua_mixxx_PlayInterface_kill00);
   tolua_function(tolua_S,"kill",tolua_mixxx_PlayInterface_kill00);
 tolua_function(tolua_S,"killTag",tolua_mixxx_PlayInterface_killTag00);
   tolua_function(tolua_S,"killTag",tolua_mixxx_PlayInterface_killTag00);
 tolua_function(tolua_S,"getFader",tolua_mixxx_PlayInterface_getFader00);
   tolua_function(tolua_S,"getFader",tolua_mixxx_PlayInterface_getFader00);
 tolua_function(tolua_S,"getValue",tolua_mixxx_PlayInterface_getValue00);
   tolua_function(tolua_S,"getValue",tolua_mixxx_PlayInterface_getValue00);
 tolua_function(tolua_S,"startFadeCrossfader",tolua_mixxx_PlayInterface_startFadeCrossfader00);
   tolua_function(tolua_S,"startFadeCrossfader",tolua_mixxx_PlayInterface_startFadeCrossfader00);
 tolua_function(tolua_S,"startList",tolua_mixxx_PlayInterface_startList00);
   tolua_function(tolua_S,"startList",tolua_mixxx_PlayInterface_startList00);
 tolua_function(tolua_S,"startFade",tolua_mixxx_PlayInterface_startFade00);
   tolua_function(tolua_S,"startFade",tolua_mixxx_PlayInterface_startFade00);
 tolua_function(tolua_S,"point",tolua_mixxx_PlayInterface_point00);
   tolua_function(tolua_S,"point",tolua_mixxx_PlayInterface_point00);
 tolua_function(tolua_S,"fadePoint",tolua_mixxx_PlayInterface_fadePoint00);
   tolua_function(tolua_S,"fadePoint",tolua_mixxx_PlayInterface_fadePoint00);
 tolua_function(tolua_S,"endFade",tolua_mixxx_PlayInterface_endFade00);
   tolua_function(tolua_S,"endFade",tolua_mixxx_PlayInterface_endFade00);
 tolua_function(tolua_S,"endList",tolua_mixxx_PlayInterface_endList00);
   tolua_function(tolua_S,"endList",tolua_mixxx_PlayInterface_endList00);
 tolua_function(tolua_S,"playChannel1",tolua_mixxx_PlayInterface_playChannel100);
   tolua_function(tolua_S,"playChannel1",tolua_mixxx_PlayInterface_playChannel100);
 tolua_function(tolua_S,"playChannel2",tolua_mixxx_PlayInterface_playChannel200);
   tolua_function(tolua_S,"playChannel2",tolua_mixxx_PlayInterface_playChannel200);
 tolua_endmodule(tolua_S);
  tolua_endmodule(tolua_S);
 tolua_endmodule(tolua_S);
 tolua_endmodule(tolua_S);
 return 1;
 return 1;
}
}
#if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
 TOLUA_API int luaopen_mixxx (lua_State* tolua_S) {
 return tolua_mixxx_open(tolua_S);
};
#endif
 Lines 316-322    Link Here 
#   SCRIPTING ENGINE --------
#   SCRIPTING ENGINE --------
OBJECT=tolua.h
OBJECT=tolua++.h
TYPE=header
TYPE=header
OPTIONS=disable_feature
OPTIONS=disable_feature
DESCRIPTION=Lua Support
DESCRIPTION=Lua Support
 Lines 481-487    Link Here 
contains(ENABLED_FEATURES, lua) {
contains(ENABLED_FEATURES, lua) {
	HEADERS += script/lua/*.h
	HEADERS += script/lua/*.h
	SOURCES += script/lua/*.cpp
	SOURCES += script/lua/*.cpp
	LIBS+=-llua -llualib -ltolua
	LIBS+=-llua -ltolua++
	DEFINES += __LUA__
	DEFINES += __LUA__
}
}