![]() |
Umsci
Upmix Spatial Control Interface — OCA/OCP.1 spatial audio utility
|
Carries a State value across the thread boundary via JUCE's message queue. More...
#include <DeviceController.h>
Inheritance diagram for DeviceController::StateChangeMessage:
Collaboration diagram for DeviceController::StateChangeMessage:Public Member Functions | |
| StateChangeMessage (State s) | |
| StateChangeMessage ()=default | |
| virtual | ~StateChangeMessage ()=default |
| void | setState (State s) |
| State | getState () const |
Carries a State value across the thread boundary via JUCE's message queue.
ocp1MessageReceived() runs on the JUCE IPC/socket thread. Calling setState() directly from there would invoke onStateChanged on the wrong thread. Instead, a StateChangeMessage is posted to the JUCE message thread via postMessage(), so handleMessage() invokes setState() — and therefore onStateChanged — safely on the message thread.
Definition at line 638 of file DeviceController.h.
|
inline |
Definition at line 641 of file DeviceController.h.
References setState().
|
default |
|
virtualdefault |
|
inline |
Definition at line 646 of file DeviceController.h.
|
inline |
Definition at line 645 of file DeviceController.h.
Referenced by StateChangeMessage().