Skip to main content

Wrapper

Struct Wrapper 

Source
pub struct Wrapper<P: Vst3Plugin> { /* private fields */ }

Implementations§

Source§

impl<P: Vst3Plugin> Wrapper<P>

Source

pub fn new() -> Self

Trait Implementations§

Source§

impl<P: Vst3Plugin> Class for Wrapper<P>

Source§

impl<P: Vst3Plugin> Default for Wrapper<P>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<P: Vst3Plugin> Drop for Wrapper<P>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more
Source§

impl<P: Vst3Plugin> IAudioProcessorTrait for Wrapper<P>

Source§

unsafe fn setBusArrangements( &self, inputs: *mut SpeakerArrangement, num_ins: int32, outputs: *mut SpeakerArrangement, num_outs: int32, ) -> tresult

Source§

unsafe fn getBusArrangement( &self, dir: BusDirection, index: i32, arr: *mut SpeakerArrangement, ) -> tresult

Source§

unsafe fn canProcessSampleSize(&self, symbolic_sample_size: int32) -> tresult

Source§

unsafe fn getLatencySamples(&self) -> uint32

Source§

unsafe fn setupProcessing(&self, setup: *mut ProcessSetup) -> tresult

Source§

unsafe fn setProcessing(&self, state: TBool) -> tresult

Source§

unsafe fn process(&self, data: *mut ProcessData) -> tresult

Source§

unsafe fn getTailSamples(&self) -> uint32

Source§

impl<P: Vst3Plugin> IComponentTrait for Wrapper<P>

Source§

unsafe fn getControllerClassId(&self, _class_id: *mut TUID) -> tresult

Source§

unsafe fn setIoMode(&self, _mode: IoMode) -> tresult

Source§

unsafe fn getBusCount(&self, type_: MediaType, dir: BusDirection) -> int32

Source§

unsafe fn getBusInfo( &self, type_: MediaType, dir: BusDirection, index: int32, info: *mut BusInfo, ) -> tresult

Source§

unsafe fn getRoutingInfo( &self, in_info: *mut RoutingInfo, out_info: *mut RoutingInfo, ) -> tresult

Source§

unsafe fn activateBus( &self, type_: MediaType, dir: BusDirection, index: int32, _state: TBool, ) -> tresult

Source§

unsafe fn setActive(&self, state: TBool) -> tresult

Source§

unsafe fn setState(&self, state: *mut IBStream) -> tresult

Source§

unsafe fn getState(&self, state: *mut IBStream) -> tresult

Source§

impl<P: Vst3Plugin> IEditControllerTrait for Wrapper<P>

Source§

unsafe fn setComponentState(&self, _state: *mut IBStream) -> tresult

Source§

unsafe fn setState(&self, _state: *mut IBStream) -> tresult

Source§

unsafe fn getState(&self, _state: *mut IBStream) -> tresult

Source§

unsafe fn getParameterCount(&self) -> int32

Source§

unsafe fn getParameterInfo( &self, param_index: int32, info: *mut ParameterInfo, ) -> tresult

Source§

unsafe fn getParamStringByValue( &self, id: ParamID, value_normalized: ParamValue, string: *mut String128, ) -> tresult

Source§

unsafe fn getParamValueByString( &self, id: ParamID, string: *mut TChar, value_normalized: *mut ParamValue, ) -> tresult

Source§

unsafe fn normalizedParamToPlain( &self, id: ParamID, value_normalized: ParamValue, ) -> ParamValue

Source§

unsafe fn plainParamToNormalized( &self, id: ParamID, plain_value: ParamValue, ) -> ParamValue

Source§

unsafe fn getParamNormalized(&self, id: ParamID) -> ParamValue

Source§

unsafe fn setParamNormalized(&self, id: ParamID, value: ParamValue) -> tresult

Source§

unsafe fn setComponentHandler(&self, handler: *mut IComponentHandler) -> tresult

Source§

unsafe fn createView(&self, _name: FIDString) -> *mut IPlugView

Source§

impl<P: Vst3Plugin> IMidiMappingTrait for Wrapper<P>

Source§

unsafe fn getMidiControllerAssignment( &self, bus_index: int32, channel: int16, midi_cc_number: CtrlNumber, param_id: *mut ParamID, ) -> tresult

Source§

impl<P: Vst3Plugin> INoteExpressionControllerTrait for Wrapper<P>

Source§

unsafe fn getNoteExpressionCount( &self, bus_idx: int32, _channel: int16, ) -> int32

Source§

unsafe fn getNoteExpressionInfo( &self, bus_idx: int32, _channel: int16, note_expression_idx: int32, info: *mut NoteExpressionTypeInfo, ) -> tresult

Source§

unsafe fn getNoteExpressionStringByValue( &self, _bus_idx: int32, _channel: int16, _id: NoteExpressionTypeID, _value: NoteExpressionValue, _string: *mut String128, ) -> tresult

Source§

unsafe fn getNoteExpressionValueByString( &self, _bus_idx: int32, _channel: int16, _id: NoteExpressionTypeID, _string: *const TChar, _value: *mut NoteExpressionValue, ) -> tresult

Source§

impl<P: Vst3Plugin> IPluginBaseTrait for Wrapper<P>

Source§

unsafe fn initialize(&self, _context: *mut FUnknown) -> tresult

Source§

unsafe fn terminate(&self) -> tresult

Source§

impl<P: Vst3Plugin> IProcessContextRequirementsTrait for Wrapper<P>

Source§

impl<P: Vst3Plugin> IUnitInfoTrait for Wrapper<P>

Source§

unsafe fn getUnitCount(&self) -> int32

Source§

unsafe fn getUnitInfo(&self, unit_index: int32, info: *mut UnitInfo) -> tresult

Source§

unsafe fn getProgramListCount(&self) -> int32

Source§

unsafe fn getProgramListInfo( &self, _list_index: int32, _info: *mut ProgramListInfo, ) -> tresult

Source§

unsafe fn getProgramName( &self, _list_id: ProgramListID, _program_index: int32, _name: *mut String128, ) -> tresult

Source§

unsafe fn getProgramInfo( &self, _list_id: ProgramListID, _program_index: int32, _attribute_id: CString, _attribute_value: *mut String128, ) -> tresult

Source§

unsafe fn hasProgramPitchNames( &self, _id: ProgramListID, _index: int32, ) -> tresult

Source§

unsafe fn getProgramPitchName( &self, _id: ProgramListID, _index: int32, _pitch: int16, _name: *mut String128, ) -> tresult

Source§

unsafe fn getSelectedUnit(&self) -> UnitID

Source§

unsafe fn selectUnit(&self, _id: UnitID) -> tresult

Source§

unsafe fn getUnitByBus( &self, _type_: MediaType, _dir: BusDirection, _bus_index: int32, _channel: int32, _unit_id: *mut UnitID, ) -> tresult

Source§

unsafe fn setUnitProgramData( &self, _list_or_unit: int32, _program_idx: int32, _data: *mut IBStream, ) -> tresult

Auto Trait Implementations§

§

impl<P> !RefUnwindSafe for Wrapper<P>

§

impl<P> !UnwindSafe for Wrapper<P>

§

impl<P> Freeze for Wrapper<P>

§

impl<P> Send for Wrapper<P>

§

impl<P> Sync for Wrapper<P>

§

impl<P> Unpin for Wrapper<P>

§

impl<P> UnsafeUnpin for Wrapper<P>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<S> FromSample<S> for S

Source§

fn from_sample_(s: S) -> S

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

Source§

fn to_sample_(self) -> U

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.