/******************************************************************** SleepLib Waveform Class Implementation Copyright (c)2011 Mark Watkins License: GPL *********************************************************************/ #include "waveform.h" Waveform::Waveform(qint64 time,MachineCode code, SampleFormat *data,int samples,qint64 duration,SampleFormat min, SampleFormat max) :w_time(time),w_code(code),w_data(data),w_samples(samples),w_duration(duration) { w_totalspan=duration; w_samplespan=duration/samples; Min=min; Max=max; } Waveform::~Waveform() { delete [] w_data; }