dmxprogram.cpp 518 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "dmxprogram.h"
#include "dmxchannelfilter.h"
#include "programm.h"
#include <cstring>

namespace Modules {

    DMXProgram::DMXProgram()
    {

    }

    ProgrammState DMXProgram::doStep(time_diff_t diff) {
        time += diff;
        std::memset(values,0,getOutputLength());
        DMXChannelFilter::initValues(values,getOutputLength());
        ::Programm::fill(values,getOutputLength(),time/1000.);
        DMXChannelFilter::filterValues(values,getOutputLength());
        return {false,true};
    }
}