#1 Le 04/06/2024, à 20:44
- temps
problème d'intégration des effets libsox dans qt6
Bonjour,
j'ai un code qui fonctionne bien c'est
void MainWindow::on_pushButton_5_released()
{
// std::system("sox audiojo.wav -c 2 josox2.ogg && play josox2.ogg trim 0 30 : newfile : trim 0 30");
std::system("sox audiojo.wav -c 2 josox2.ogg trim 0 30 : newfile : trim 0 30");
// Initialiser libsox
sox_format_init();
QProcess qprocess2;
qprocess2.startDetached("play",QStringList()<<"josox1.ogg");
sox_format_quit();
}
j'ai dans l'entete
#include "src/sox.h"
et dans le pro
LIBS += -L/lib lib/libsox.so \
-L/lib lib/libsoxr.so \
-L/lib libsox1.so
Je voudrais que le code dessous fonctionne, mais dès que j'ajoute un include des sources j'obtiens des centaines d'erreurs car tout est lié dans la libsox
void MainWindow::on_pushButton_4_released()
{
sox_format_init();
QProcess qprocess1;
qprocess1.startDetached("sox",QStringList()<<"audiojo.wav -c 2 josox1.ogg chorus 0.5 0.9 50.0 0.4 0.25 2.0 -t 60.0 0.32 0.4 2.3 -t 40.0 0.3 0.3 1.3 -s");
qprocess1.startDetached("play",QStringList()<<"josox1.ogg");
sox_format_quit();
}
}
et en sortie du dernier code j'ai :
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libQt6Multimedia.so.6
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libQt6Network.so.6
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libQt6Gui.so.6
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libpulse.so.0
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libbrotlidec.so.1
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libproxy.so.1
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-16.1.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libbrotlicommon.so.1
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libcap.so.2
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/liblber.so.2
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/qt6/plugins/platforms/libqwayland-generic.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/qt6/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/qt6/plugins/wayland-shell-integration/libxdg-shell.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/qt6/plugins/wayland-graphics-integration-client/libqt-plugin-wayland-egl.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libQt6OpenGL.so.6
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libtinfo.so.6
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/qt6/plugins/wayland-decoration-client/libbradient.so
sox WARN wav: Premature EOF on .wav input file
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_amr_nb.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_amr_wb.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_caf.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_fap.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_flac.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_gsm.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_lpc10.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_mat4.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_mat5.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_paf.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libpulse-simple.so.0
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_pvf.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_sd2.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_sndfile.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_vorbis.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_w64.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_wavpack.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_xi.so
josox3.ogg:
File Size: 43.0k Bit Rate: 105k
Encoding: Vorbis Info: Processed by SoX
Channels: 2 @ 16-bit
Samplerate: 44100Hz
Replaygain: off
Duration: 00:00:03.27
In:100% 00:00:03.27 [00:00:00.00] Out:144k [ | ] Hd:0.5 Clip:0
Done.
21:13:46: La débogage de « /home/josiane/Images/audiojo/qt/audiojo/build-audiojo-Desktop-Debug/audiojo » s’est terminé avec le code de sortie 0.
21:22:31: Débogage de /home/josiane/Images/audiojo/qt/audiojo/build-audiojo-Desktop-Debug/audiojo…
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libQt6Multimedia.so.6
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libQt6Network.so.6
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libQt6Gui.so.6
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libpulse.so.0
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libbrotlidec.so.1
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libproxy.so.1
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-16.1.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libbrotlicommon.so.1
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libcap.so.2
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/liblber.so.2
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/qt6/plugins/platforms/libqwayland-generic.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/qt6/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/qt6/plugins/wayland-shell-integration/libxdg-shell.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/qt6/plugins/wayland-graphics-integration-client/libqt-plugin-wayland-egl.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libQt6OpenGL.so.6
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libtinfo.so.6
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/qt6/plugins/wayland-decoration-client/libbradient.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_amr_nb.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_amr_wb.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_caf.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_fap.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_flac.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_gsm.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_lpc10.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_mat4.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_mat5.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_paf.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/libpulse-simple.so.0
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_pvf.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_sd2.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_sndfile.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_vorbis.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_w64.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_wavpack.so
could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/sox/libsox_fmt_xi.so
/usr/bin/sox FAIL sox: Not enough input filenames specified
Dernière modification par temps (Le 04/06/2024, à 20:50)
Parce que l'USB bootable est le support des systèmes experts,
Parce que l'USB bootable contient sa propre image au démarrage.
L'USB bootable permet de créer un monde à la dimension de son imagination
https://www.letime.net
Hors ligne
#2 Le 05/06/2024, à 05:00
- temps
Re : problème d'intégration des effets libsox dans qt6
Bojour,
à la relecture je m'aperçois que c'est mal dit.
Ce que je veux c'est pouvoir utiliser la libsox dans mon code et donc je voudrais pouvoir écrire :
void MainWindow::on_pushButton_4_released()
{
// Initialiser libsox
sox_format_init();
sox("audiojo.wav -c 2 josox1.ogg chorus 0.5 0.9 50.0 0.4 0.25 2.0 -t 60.0 0.32 0.4 2.3 -t 40.0 0.3 0.3 1.3 -s");
QProcess qprocess1;
qprocess1.startDetached("play",QStringList()<<"josox1.ogg");
sox_format_quit();
}
mais je n'y arrive pas.
j'ai à la compilation
alors même que j'ai mis les sources et les 3 lib sox comme indiqué dans le premier message
/.../audiojo/qt/audiojo/audiojo/mainwindow.cpp:548: erreur : no matching function for call to ‘MainWindow::sox(const char [105])’
../audiojo/mainwindow.cpp: In member function ‘void MainWindow::on_pushButton_4_released()’:
../audiojo/mainwindow.cpp:548:8: error: no matching function for call to ‘MainWindow::sox(const char [105])’
548 | sox("audiojo.wav -c 2 josox1.ogg chorus 0.5 0.9 50.0 0.4 0.25 2.0 -t 60.0 0.32 0.4 2.3 -t 40.0 0.3 0.3 1.3 -s");
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Cordialement
Dernière modification par temps (Le 05/06/2024, à 05:08)
Parce que l'USB bootable est le support des systèmes experts,
Parce que l'USB bootable contient sa propre image au démarrage.
L'USB bootable permet de créer un monde à la dimension de son imagination
https://www.letime.net
Hors ligne