mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-07-23 18:44:19 -04:00
Moved Portaudio initialization to the main function.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3165 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include <QtGui>
|
||||
#include <QtGui/QApplication>
|
||||
#include <portaudio.h>
|
||||
#include "mainwindow.h"
|
||||
|
||||
QSharedMemory mem_jt9("mem_jt9");
|
||||
@@ -33,6 +34,13 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
memset(to,0,size); //Zero all decoding params in shared memory
|
||||
|
||||
//Initialize Portaudio
|
||||
PaError paerr=Pa_Initialize();
|
||||
if(paerr!=paNoError) {
|
||||
QMessageBox::critical( 0, "Error", "Unable to initialize PortAudio.");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
MainWindow w(&mem_jt9);
|
||||
w.show();
|
||||
return a.exec();
|
||||
|
||||
Reference in New Issue
Block a user