diff --git a/mainwindow.cpp b/mainwindow.cpp index 375abb8d7..ddcad7901 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1616,7 +1616,7 @@ void MainWindow::read_wav_file (QString const& fname) auto sample_size = static_cast (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