template<int MAXNC = 1, int QUEUE_SIZE = 64>
class IPeakSender< MAXNC, QUEUE_SIZE >
IPeakSender is a utility class which can be used to defer peak data from sample buffers for sending to the GUI It sends the average peak value over a certain time window.
Definition at line 114 of file ISender.h.
template<int MAXNC = 1, int QUEUE_SIZE = 64>
void IPeakSender< MAXNC, QUEUE_SIZE >::ProcessBlock |
( |
sample ** |
inputs, |
|
|
int |
nFrames, |
|
|
int |
ctrlTag = kNoTag , |
|
|
int |
nChans = MAXNC , |
|
|
int |
chanOffset = 0 |
|
) |
| |
|
inline |
Queue peaks from sample buffers into the sender This can be called on the realtime audio thread.
- Parameters
-
inputs | the sample buffers to analyze |
nFrames | the number of sample frames in the input buffers |
ctrlTag | a control tag to indicate which control to send the buffers to. Note: if you don't supply the control tag here, you must use TransmitDataToControlsWithTags() and specify one or more tags there |
nChans | the number of channels of data that should be sent |
chanOffset | the starting channel |
Definition at line 142 of file ISender.h.
References ISender< MAXNC, QUEUE_SIZE, T >::PushData().