ModuleManager

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

Constructors

this
this(AudioDeviceHandler handler)

Creates an instance of a module handler.

Members

Functions

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

Adds a plugin to the list.

audioCallback
void audioCallback(ubyte[] destbuffer)

Audio callback function. Renders the audio, then it copies to the destination buffer. If needed, it'll do floating point to integer conversion.

getChannels
int getChannels()
Undocumented in source. Be warned that the author may not have intended to support it.
midiReceive
void midiReceive(uint[4] data, uint offset)

MIDI commands are received here from modules.

reset
void reset()
Undocumented in source. Be warned that the author may not have intended to support it.
runAudioThread
int runAudioThread()

Runs the audio thread and starts the audio output.

setBuffers
void setBuffers(size_t num)

Sets up a specific number of buffers.

suspendAudioThread
int suspendAudioThread()

Stops all audio output.

Variables

blockSize
int blockSize;

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

buffers
float[][] buffers;

List of the buffers themselves.

channels
int channels;
Undocumented in source.
currBlock
int currBlock;

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.

midiSeq
Sequencer midiSeq;

Pointer to a MIDI sequencer, for synchronizing it with the audio stream.

moduleList
AudioModule[] moduleList;

List of modules.

nOfBlocks
int nOfBlocks;

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

outBufferList
float*[][] outBufferList;

List of pointers to output buffers.

outStrm
OutputStream outStrm;

Output stream handling.

Meta