pl-nk v0.4.5
Plonk|Plink|Plank are a set of cross-platform C/C++ frameworks for audio software development
InputTaskUnit< SampleType, InterpTypeCode > Class Template Reference

Defer a unit's processing to a separate task, thread, process or core. More...

List of all members.


Detailed Description

template<class SampleType, Interp::TypeCode InterpTypeCode>
class InputTaskUnit< SampleType, InterpTypeCode >

Defer a unit's processing to a separate task, thread, process or core.

Can also be used to distribute proessing across threads, processors or cores. Very important to use this to wrap units that access files etc (e.g., FilePlayUnit).

The latency of this will be equal to: $ \frac{preferredBlockSize \times numBuffers}{preferredSampleRate} $

Factory functions:
  • ar (input, numBuffers=16, priority=50, preferredBlockSize=noPref, preferredSampleRate=noPref)
Inputs:
  • input: (input, multi) the input unit to defer to a separate task
  • numBuffers: (int) the number of buffers to queue, also affects latency
  • priority: (int) the priority of the task (0-100, 100 is highest)
  • preferredBlockSize: the preferred output block size
  • preferredSampleRate: the preferred output sample rate

The documentation for this class was generated from the following file:
 All Classes Functions Typedefs Enumerations Enumerator Properties