ModuleManager

Manages all audio modules complete with routing, MIDI2.0, etc.

Constructors

this
this(AudioDeviceHandler handler, int bufferSize, int nOfFrames)

Creates an instance of a module handler.

Members

Enums

Flags
enum Flags

Status flags for the module manager.

Functions

addModule
void addModule(AudioModule md, size_t[] inBuffs, ubyte[] inCfg, size_t[] outBuffs, ubyte[] outCfg)

Adds a plugin to the list.

midiReceive
void midiReceive(uint[4] data, uint offset)

MIDI commands are received here from modules.

runAudioThread
void runAudioThread()
setBuffers
void setBuffers(size_t num)

Sets up a specific number of buffers.

suspendAudioThread
uint suspendAudioThread()

Stops all audio output.

Variables

bufferSize
int bufferSize;

Rendering buffer size in samples, also the length of a single frame.

buffers
float[][] buffers;

List of the buffers themselves.

currFrame
int currFrame;

Current audio frame.

devHandler
AudioDeviceHandler devHandler;

Pointer to the audio device handler.

finalBuffer
float[] finalBuffer;

Final output buffer.

inBufferList
float*[][] inBufferList;

List of pointers to input buffers.

moduleList
AudioModule[] moduleList;

List of modules.

nOfFrames
int nOfFrames;

Number of maximum frames that can be put into the output buffer.

outBufferList
float*[][] outBufferList;

List of pointers to output buffers.

statusFlags
uint statusFlags;

Status flags of the module manager.

threadID
ThreadID threadID;

Low-level thread ID.

Meta