diff --git a/SleepLib/loader_plugins/prs1_loader.cpp b/SleepLib/loader_plugins/prs1_loader.cpp index d24d4a6b..0f806393 100644 --- a/SleepLib/loader_plugins/prs1_loader.cpp +++ b/SleepLib/loader_plugins/prs1_loader.cpp @@ -898,15 +898,19 @@ bool PRS1Loader::OpenWaveforms(Session *session,QString filename) static qint16 interleave[max_signals]={0}; static char sampletype[max_signals]={0}; - int hl; + int hl=0; long samples=0; qint64 duration=0; char * buffer=(char *)m_buffer; bool first2=true; + long fpos=0; + int bsize=0; + int lasthl=0; while (true) { + lasthl=hl; hl=20; br=f.read((char *)header,hl); - + fpos+=hl; if (brshowMaximized(); +#endif ui->setupUi(this); this->setWindowTitle(tr("SleepyHead")+QString(" v0.8.")+subversion);