【发布时间】:2021-07-05 08:57:05
【问题描述】:
我想用 QT 制作用于音频的 c++ 应用程序,我想使用 sox,我导入了 sox.sourceforg.net 项目代码的 src 文件夹。并输入非常简单的代码
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <src/sox.h>
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);
sox_format_t* input = sox_open_read("d.wav", NULL, NULL, NULL);
}
MainWindow::~MainWindow()
{
delete ui;
}
但遇到undefined reference to sox_open_read' 的错误。因为这个功能在我编程时会自动完成显示。
我在这个网站和 github 上搜索了很多,找到了这些下面的链接,但没有修复我的 prb
How can I send my audio file to stdout with the libsox library?
【问题讨论】: