Mercurial > hg > svapp
comparison framework/MainWindowBase.h @ 658:94f518af106c single-point
Support reading OSC script from stdin; make it possible to run OSC script even without external OSC port
author | Chris Cannam |
---|---|
date | Thu, 28 Mar 2019 13:37:40 +0000 |
parents | 4f53620962d9 |
children | 49cf3787cf22 |
comparison
equal
deleted
inserted
replaced
657:029c224384d1 | 658:94f518af106c |
---|---|
360 breakfastquay::SystemAudioIO *m_audioIO; // ... and this exists | 360 breakfastquay::SystemAudioIO *m_audioIO; // ... and this exists |
361 | 361 |
362 class OSCQueueStarter : public QThread | 362 class OSCQueueStarter : public QThread |
363 { | 363 { |
364 public: | 364 public: |
365 OSCQueueStarter(MainWindowBase *mwb) : QThread(mwb), m_mwb(mwb) { } | 365 OSCQueueStarter(MainWindowBase *mwb, bool withNetworkPort) : |
366 QThread(mwb), m_mwb(mwb), m_withPort(withNetworkPort) { } | |
367 | |
366 void run() override { | 368 void run() override { |
367 OSCQueue *queue = new OSCQueue(); // can take a long time | 369 // NB creating the queue object can take a long time |
370 OSCQueue *queue = new OSCQueue(m_withPort); | |
368 m_mwb->m_oscQueue = queue; | 371 m_mwb->m_oscQueue = queue; |
369 } | 372 } |
373 | |
370 private: | 374 private: |
371 MainWindowBase *m_mwb; | 375 MainWindowBase *m_mwb; |
376 bool m_withPort; | |
372 }; | 377 }; |
373 | 378 |
374 OSCQueue *m_oscQueue; | 379 OSCQueue *m_oscQueue; |
375 OSCQueueStarter *m_oscQueueStarter; | 380 OSCQueueStarter *m_oscQueueStarter; |
376 OSCScript *m_oscScript; | 381 OSCScript *m_oscScript; |
377 QString m_oscScriptFile; | 382 QString m_oscScriptFile; |
378 | 383 |
379 void startOSCQueue(); | 384 void startOSCQueue(bool withNetworkPort); |
380 void startOSCScript(); | 385 void startOSCScript(); |
381 | 386 |
382 MIDIInput *m_midiInput; | 387 MIDIInput *m_midiInput; |
383 | 388 |
384 RecentFiles m_recentFiles; | 389 RecentFiles m_recentFiles; |