MIDI callbackhook implementation
General and Desktop
2
Posts
2
Posters
2.0k
Views
1
Watching
-
wrote on 4 Aug 2011, 22:00 last edited by
Hi,
How can I implement correctly MidiIn Callbackhook in a Desktop Application.
- separate thread?
- MainWindow method?
Thx,
MNSz -
wrote on 14 Aug 2011, 20:13 last edited by
Depends on the work done in the callback. Usually the callback function is executed in the library's thread, which may be your main thread. If you need to feed back information into your application, it's probably a good idea to read "Threads, Events & QOjects":https://developer.qt.nokia.com/wiki/Threads_Events_QObjects for more information on how to pass event callbacks into the event loop.