Mixxx

/home/maxime/Projets/Mixxx/1.10/mixxx/src/script/playinterface.h

Go to the documentation of this file.
00001 #ifndef SCRIPT_PLAYINTERFACE_H
00002 #define SCRIPT_PLAYINTERFACE_H
00003 
00004 #include "scriptcontrolqueue.h"
00005 #include <QLinkedList>
00006 #include "qdatetime.h"
00007 
00008 class PlayInterface {
00009         public:
00010                 PlayInterface(ScriptControlQueue* q);
00011                 ~PlayInterface();
00012                 void setProcess(int);
00013                 void clearProcess();
00014                 void doStartFade(const char* group, const char* name, \
00015                                 int interp);    
00016                 // Functions for scripts to call below here
00017                 void stop(int channel);
00018                 void play(int channel);
00019                 void setFader(double fade);
00020                 void test();
00021 
00022                 void setTag(int tag);
00023                 void clearTag();
00024         
00025                 void kill();
00026                 void killTag(int tag);
00027                 
00028                 double getFader();
00029                 double getValue(const char* group, const char* name);
00030                 
00031                 void startFadeCrossfader();
00032                 void startList(const char* group, const char* name);
00033                 void startFade(const char* group, const char* name);
00034                 void point(int time, double value);
00035                 void fadePoint(int time, double value);
00036                 void endFade();
00037                 void endList();
00038 
00039                 void playChannel1(int time, const char* path);
00040                 void playChannel2(int time, const char* path);
00041 
00042 
00043         private:
00044                 ScriptControlQueue* m_q;
00045                 
00046                 QDateTime m_time;
00047                 QLinkedList<int>* m_times;
00048                 QLinkedList<double>* m_values;
00049                 
00050                 const char* m_group;
00051                 const char* m_name;
00052                 int m_interp;
00053                 int m_process;
00054                 int m_tag;
00055 };
00056 
00057 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines