mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-02-23 05:58:43 -05:00
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:
parent
f98c5070c5
commit
64f796061f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user