|
Vital
|
A specialized Output that always runs at control rate (buffer_size = 1). More...
#include <processor.h>
Public Member Functions | |
| Output () | |
| Constructs a control-rate Output (always buffer_size = 1). | |
Public Member Functions inherited from vital::Output | |
| Output (int size=kMaxBufferSize, int max_oversample=1) | |
| Constructs an Output with a specified buffer size and oversampling factor. | |
| virtual | ~Output () |
| Virtual destructor. | |
| force_inline void | trigger (poly_mask mask, poly_float value, poly_int offset) |
| Sets trigger values (mask, trigger value, and offset). | |
| force_inline void | clearTrigger () |
| Clears the trigger mask, value, and offset. | |
| void | clearBuffer () |
| Zeros out the entire output buffer. | |
| force_inline bool | isControlRate () const |
| Checks whether this output runs at control rate (buffer_size == 1). | |
| void | ensureBufferSize (int new_max_buffer_size) |
Ensures the buffer is large enough to hold new_max_buffer_size samples. This will reallocate if necessary (unless already control rate). | |
Additional Inherited Members | |
Public Attributes inherited from vital::Output | |
| poly_float * | buffer |
| Pointer to the output buffer. | |
| std::unique_ptr< poly_float[]> | owned_buffer |
| Owned memory for the output buffer. | |
| Processor * | owner |
| Owning processor. | |
| int | buffer_size |
| Current buffer size in samples. | |
| poly_mask | trigger_mask |
| Mask for triggered voices. | |
| poly_float | trigger_value |
| Trigger values for voices. | |
| poly_int | trigger_offset |
| Sample offset (per voice) for triggers. | |
A specialized Output that always runs at control rate (buffer_size = 1).
This is used for control signals rather than audio signals.
|
inline |
Constructs a control-rate Output (always buffer_size = 1).