![]() |
Mixxx
|
00001 // enginecontrol.cpp 00002 // Created 7/5/2009 by RJ Ryan (rryan@mit.edu) 00003 00004 #include "engine/enginecontrol.h" 00005 #include "engine/enginebuffer.h" 00006 00007 EngineControl::EngineControl(const char * _group, 00008 ConfigObject<ConfigValue> * _config) : 00009 m_pGroup(_group), 00010 m_pConfig(_config), 00011 m_dCurrentSample(0), 00012 m_dTotalSamples(0), 00013 m_pOtherEngineBuffer(NULL) { 00014 } 00015 00016 EngineControl::~EngineControl() { 00017 00018 } 00019 00020 00021 double EngineControl::process(const double, 00022 const double, 00023 const double, 00024 const int) { 00025 return kNoTrigger; 00026 } 00027 00028 double EngineControl::nextTrigger(const double, 00029 const double, 00030 const double, 00031 const int) { 00032 return kNoTrigger; 00033 } 00034 00035 double EngineControl::getTrigger(const double, 00036 const double, 00037 const double, 00038 const int) { 00039 return kNoTrigger; 00040 } 00041 00042 void EngineControl::trackLoaded(TrackPointer) { 00043 } 00044 00045 void EngineControl::trackUnloaded(TrackPointer) { 00046 } 00047 00048 void EngineControl::hintReader(QList<Hint>&) { 00049 } 00050 00051 void EngineControl::setOtherEngineBuffer(EngineBuffer* pOtherEngineBuffer) { 00052 m_pOtherEngineBuffer = pOtherEngineBuffer; 00053 } 00054 00055 void EngineControl::setCurrentSample(const double dCurrentSample, const double dTotalSamples) { 00056 m_dCurrentSample = dCurrentSample; 00057 m_dTotalSamples = dTotalSamples; 00058 } 00059 00060 double EngineControl::getCurrentSample() const { 00061 return m_dCurrentSample; 00062 } 00063 00064 double EngineControl::getTotalSamples() const { 00065 return m_dTotalSamples; 00066 } 00067 00068 const char* EngineControl::getGroup() { 00069 return m_pGroup; 00070 } 00071 00072 ConfigObject<ConfigValue>* EngineControl::getConfig() { 00073 return m_pConfig; 00074 } 00075 00076 EngineBuffer* EngineControl::getOtherEngineBuffer() { 00077 return m_pOtherEngineBuffer; 00078 } 00079 00080 void EngineControl::notifySeek(double dNewPlaypos) { 00081 00082 }