wfpacket.cpp
24 lines
| 469 B
| text/x-c
|
CppLexer
/ rmapplugin / wfpacket.cpp
r20 | #include "wfpacket.h" | |||
WFPacket::WFPacket(QObject *parent) : | ||||
QObject(parent) | ||||
{ | ||||
this->nbSamples = XMAX; | ||||
// | ||||
wf_v = (short*) malloc(2*XMAX); | ||||
wf_e1 = (short*) malloc(2*XMAX); | ||||
wf_e2 = (short*) malloc(2*XMAX); | ||||
wf_b1 = (short*) malloc(2*XMAX); | ||||
wf_b2 = (short*) malloc(2*XMAX); | ||||
wf_b3 = (short*) malloc(2*XMAX); | ||||
} | ||||
WFPacket::~WFPacket() | ||||
{ | ||||
free(wf_v); | ||||
free(wf_e1); | ||||
free(wf_e2); | ||||
free(wf_b1); | ||||
free(wf_b2); | ||||
free(wf_b3); | ||||
} | ||||