Fix regression when reading WAV files

Decoder needs the number of samples not the number of bytes.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6489 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2016-02-23 18:28:37 +00:00
parent f98c5070c5
commit 64f796061f

View File

@ -1616,7 +1616,7 @@ void MainWindow::read_wav_file (QString const& fname)
auto sample_size = static_cast<short > (file.format ().sampleSize ());
wav12_ (dec_data.d2, dec_data.d2, &n, &sample_size);
}
dec_data.params.kin = n;
dec_data.params.kin = n / file.format ().bytesPerFrame ();
dec_data.params.newdat = 1;
});
m_wav_future_watcher.setFuture(m_wav_future); // call diskDat() when done