From 7555a1d27ba9eb7c1a7ba5b0d27f76ac785d25b6 Mon Sep 17 00:00:00 2001 From: Szybet <53944559+Szybet@users.noreply.github.com> Date: Sun, 10 Sep 2023 14:34:02 +0200 Subject: [PATCH] Update audiodialog.cpp --- src/widgets/dialogs/audio/audiodialog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/widgets/dialogs/audio/audiodialog.cpp b/src/widgets/dialogs/audio/audiodialog.cpp index 502462a..d6ccda2 100644 --- a/src/widgets/dialogs/audio/audiodialog.cpp +++ b/src/widgets/dialogs/audio/audiodialog.cpp @@ -167,6 +167,8 @@ void audioDialog::refreshFileList() { // https://github.com/libsndfile/libsndfile // Is it easy to do? Yes. Does it take more space? Yes. Do I care? No, I have this fancy command instead: // for i in *; do ffmpeg -i "$i" "${i%.*}.wav"; done + // To make the files smaller: + // for i in *; do ffmpeg -i "$i" -sample_fmt s16 -ar 22000 "${i%.*}22k.wav"; done // (Szybet) dir.setNameFilters(QStringList("*.wav")); dir.setFilter(QDir::Files | QDir::NoDotAndDotDot | QDir::NoSymLinks);