iPlug2 - C++ Audio Plug-in Framework
|
ISender is a utility class which can be used to defer data from the realtime audio processing and send it to the GUI for visualization. More...
#include <ISender.h>
Public Member Functions | |
void | PushData (const ISenderData< MAXNC, T > &d) |
Pushes a data element onto the queue. More... | |
virtual void | PrepareDataForUI (ISenderData< MAXNC, T > &d) |
This is called on the main thread and can be used to transform the data, e.g. More... | |
void | TransmitData (IEditorDelegate &dlg) |
Pops elements off the queue and sends messages to controls. More... | |
void | TransmitDataToControlsWithTags (IEditorDelegate &dlg, const std::initializer_list< int > &ctrlTags) |
This variation can be used if you need to supply multiple controls with the same ISenderData, overriding the tags in the data packet. More... | |
Static Public Attributes | |
static constexpr int | kUpdateMessage = 0 |
ISender is a utility class which can be used to defer data from the realtime audio processing and send it to the GUI for visualization.
|
inlinevirtual |
This is called on the main thread and can be used to transform the data, e.g.
take an FFT.
Definition at line 77 of file ISender.h.
Referenced by ISender< MAXNC, QUEUE_SIZE, T >::TransmitData().
|
inline |
Pushes a data element onto the queue.
This can be called on the realtime audio thread.
Definition at line 71 of file ISender.h.
Referenced by IPeakSender< MAXNC, QUEUE_SIZE >::ProcessBlock(), IPeakAvgSender< MAXNC, QUEUE_SIZE >::ProcessBlock(), and IBufferSender< MAXNC, QUEUE_SIZE, MAXBUF >::ProcessBlock().
|
inline |
Pops elements off the queue and sends messages to controls.
This must be called on the main thread - typically in MyPlugin::OnIdle()
Definition at line 81 of file ISender.h.
References ISender< MAXNC, QUEUE_SIZE, T >::PrepareDataForUI(), and IEditorDelegate::SendControlMsgFromDelegate().
|
inline |
This variation can be used if you need to supply multiple controls with the same ISenderData, overriding the tags in the data packet.
dlg | The editor delegate |
ctrlTags | A list of control tags that should receive the updates from this sender |
Definition at line 96 of file ISender.h.
References IEditorDelegate::SendControlMsgFromDelegate().
|
staticconstexpr |