mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-08 17:04:41 -04:00
Most of these changes are thanks to G4WJS. Audio I/O is now done using
Qt's built-in QAudio calls rather than PortAudio. Also includes some refactoring of the arrangement for these calls, and more use of C++ style. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3523 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
@@ -4,9 +4,10 @@
|
||||
#include <QtGui>
|
||||
#endif
|
||||
#include <QApplication>
|
||||
#include <portaudio.h>
|
||||
|
||||
#include "mainwindow.h"
|
||||
|
||||
|
||||
// Multiple instances:
|
||||
QSharedMemory mem_jt9;
|
||||
QUuid my_uuid;
|
||||
@@ -48,13 +49,6 @@ 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);
|
||||
}
|
||||
|
||||
// Multiple instances: Call MainWindow() with the UUID key
|
||||
MainWindow w(&mem_jt9, &my_key, fontSize2, fontWeight2);
|
||||
w.show();
|
||||
|
||||
Reference in New Issue
Block a user