Struct rfmod::DspDescription [] [src]

pub struct DspDescription {
    pub name: String,
    pub version: u32,
    pub channels: i32,
    pub create: DspCreateCallback,
    pub release: DspReleaseCallback,
    pub reset: DspResetCallback,
    pub read: DspReadCallback,
    pub set_position: DspSetPositionCallback,
    pub num_parameters: i32,
    pub param_desc: DspParameterDesc,
    pub set_parameter: DspSetParamCallback,
    pub get_parameter: DspGetParamCallback,
    pub config_width: i32,
    pub config_height: i32,
    // some fields omitted
}

When creating a DSP unit, declare one of these and provide the relevant callbacks and name for FMOD to use when it creates and uses a DSP unit of this type.

Fields

[w] Name of the unit to be displayed in the network.

[w] Plugin writer's version number.

[w] Number of channels. Use 0 to process whatever number of channels is currently in the network. > 0 would be mostly used if the unit is a unit that only generates sound.

[w] Create callback. This is called when DSP unit is created. Can be null.

[w] Release callback. This is called just before the unit is freed so the user can do any cleanup needed for the unit. Can be null.

[w] Reset callback. This is called by the user to reset any history buffers that may need resetting for a filter, when it is to be used or re-used for the first time to its initial clean state. Use to avoid clicks or artifacts.

[w] Read callback. Processing is done here. Can be null.

[w] Set position callback. This is called if the unit wants to update its position info but not process data, or reset a cursor position internally if it is reading data from a certain source. Can be null.

[w] Number of parameters used in this filter. The user finds this with DSP::getNumParameters

[w] Variable number of parameter structures.

[w] This is called when the user calls DSP::setParameter. Can be null.

[w] This is called when the user calls DSP::getParameter. Can be null.

[w] Width of config dialog graphic if there is one. 0 otherwise.

[w] Height of config dialog graphic if there is one. 0 otherwise.

Trait Implementations

impl Default for DspDescription
[src]

Returns the "default value" for a type. Read more