AudioModule

Implements the base class for all audio modules.

Members

Aliases

StreamIDSet
alias StreamIDSet = SortedList!(ubyte, "a < b", false)
Undocumented in source.

Functions

getInfo
ModuleInfo getInfo()

Returns the basic informations about this module.

getInternalWaveformIDList
uint[] getInternalWaveformIDList()

Returns the list of internal waveform IDs if there are any.

getInternalWaveformNames
string[] getInternalWaveformNames()

Returns the names of the internal waveforms if there are any.

getParameters
MValue[] getParameters()

Returns all the possible parameters this module has.

getSamplerate
int getSamplerate()

Returns the current sample rate.

getWaveformData
const(ubyte)[] getWaveformData(uint id)

Returns the waveform data from the

getWaveformDataFormat
WaveFormat getWaveformDataFormat(uint id)

Returns the format of the selected waveform

getWaveformIDList
uint[] getWaveformIDList()

Returns the available waveform ID list

midiReceive
void midiReceive(UMP data0, uint data1, uint data2, uint data3)

MIDI 2.0 data received here.

moduleSetup
void moduleSetup(ubyte[] inputs, ubyte[] outputs, int sampleRate, size_t bufferSize, ModuleManager handler)

Sets the module up.

readParam_double
double readParam_double(uint presetID, uint paramID)

Reads the given value (int).

readParam_int
int readParam_int(uint presetID, uint paramID)

Reads the given value (int).

readParam_long
long readParam_long(uint presetID, uint paramID)

Reads the given value (int).

readParam_string
string readParam_string(uint presetID, uint paramID)

Reads the given value (int).

renderFrame
void renderFrame(float*[] input, float*[] output)

Renders the current audio frame.

waveformDataReceive
int waveformDataReceive(uint id, ubyte[] rawData, WaveFormat format)

Receives waveform data that has been loaded from disk for reading. Returns zero if successful, or a specific errorcode.

waveformSlice
int waveformSlice(uint id, uint src, uint pos, uint length)

Creates a new waveform from an existing one using slicing.

writeParam_double
int writeParam_double(uint presetID, uint paramID, double value)

Restores a parameter to the given preset. Returns an errorcode on failure.

writeParam_int
int writeParam_int(uint presetID, uint paramID, int value)

Restores a parameter to the given preset. Returns an errorcode on failure.

writeParam_long
int writeParam_long(uint presetID, uint paramID, long value)

Restores a parameter to the given preset. Returns an errorcode on failure.

writeParam_string
int writeParam_string(uint presetID, uint paramID, string value)

Restores a parameter to the given preset. Returns an errorcode on failure.

Structs

ModuleInfo
struct ModuleInfo

Contains all data related to module info.

Variables

bufferSize
size_t bufferSize;

The size of the output buffers (must kept as a constant)

enabledInputs
StreamIDSet enabledInputs;

List of enabled input channel numbers

enabledOutputs
StreamIDSet enabledOutputs;

List of enabled output channel numbers

handler
ModuleManager handler;

The main audio handler, also MIDI outs can be passed there

info
ModuleInfo info;

Basic info about the plugin

midiOut
void delegate(UMP data0, uint data1 = 0, uint data2 = 0, uint data3 = 0) midiOut;

A delegate where MIDI messages are being routed

sampleRate
int sampleRate;

The sample rate that the audio subsystem runs at

Meta