portaudio库添加

master
DESKTOP-4RNDQIC\29019 2020-06-19 01:14:18 +08:00
parent c26d86d244
commit ff8d5bda20
2 changed files with 6 additions and 3 deletions

View File

@ -78,6 +78,7 @@ void MainWindow::on_pushButton_2_clicked()
ToastWidget::showTip("已经连接上RTMP服务器",this);
mVideoCoder->SetOberver(mPusher);
mPusher->StartPush();
ui->pushButton_2->setText("关闭推流");
/*
if (nullptr != this->mAudioCoder) {
this->mAudioCoder->SetObserver(mPusher);
@ -87,6 +88,9 @@ void MainWindow::on_pushButton_2_clicked()
else {
ToastWidget::showTip("连接RTMP服务器失败请检查服务器地址",this);
}
}else{
ToastWidget::showTip("正在推流,请先关闭",this);
}
}
}

View File

@ -52,9 +52,8 @@ FORMS += \
INCLUDEPATH += media/ third/ffmpeg/include/ inc/ third/
LIBS += -L$$PWD/third/libs/
LIBS += -lm
LIBS += -lavformat -lavdevice -lavcodec -lavutil -lswresample -lswscale -lpthread -lm -lfdk-aac -lx264 -liconv -lucrtbase -lstrmiids
LIBS += -lole32 -loleAut32 -lquartz -ldxguid -ldxapi -lwinmm -lbcrypt -lssl -lcrypto -lGdi32 -lws2_32 -lbz2 -lz
LIBS += -lm -lavformat -lavdevice -lavcodec -lavutil -lswresample -lswscale -lpthread -lm -lfdk-aac -lx264 -liconv -lucrtbase -lstrmiids
LIBS += -lole32 -loleAut32 -lquartz -ldxguid -ldxapi -lwinmm -lbcrypt -lssl -lcrypto -lGdi32 -lws2_32 -lbz2 -lz -lportaudio
# Default rules for deployment.
QMAKE_CXXFLAGS_RELEASE += -Zi
QMAKE_LFLAGS_RELEASE += /DEBUG /OPT:REF