OSCAR-code/SleepLib/waveform.cpp

21 lines
639 B
C++

/********************************************************************
SleepLib Waveform Class Implementation
Copyright (c)2011 Mark Watkins <jedimark@users.sourceforge.net>
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;
}