Struct reaper_low::raw::PCM_source
source · [−]#[repr(C)]pub struct PCM_source {
pub vtable_: *const PCM_source__bindgen_vtable,
}
Fields
vtable_: *const PCM_source__bindgen_vtable
Implementations
sourceimpl PCM_source
impl PCM_source
pub fn GetLength(&self) -> f64
pub fn IsAvailable(&self) -> bool
pub fn Duplicate(&self) -> *mut PCM_source
pub fn GetType(&self) -> *const c_char
pub fn GetFileName(&self) -> *const c_char
pub fn GetSource(&self) -> *mut PCM_source
sourcepub unsafe fn Extended(
&self,
call: c_int,
parm1: *mut c_void,
parm2: *mut c_void,
parm3: *mut c_void
) -> c_int
pub unsafe fn Extended(
&self,
call: c_int,
parm1: *mut c_void,
parm2: *mut c_void,
parm3: *mut c_void
) -> c_int
Safety
REAPER can crash if you pass an invalid pointer.
pub fn SetAvailable(&self, avail: bool)
sourcepub unsafe fn SetFileName(&self, newfn: *const c_char) -> bool
pub unsafe fn SetFileName(&self, newfn: *const c_char) -> bool
Safety
REAPER can crash if you pass an invalid pointer.
sourcepub unsafe fn SetSource(&self, src: *mut PCM_source)
pub unsafe fn SetSource(&self, src: *mut PCM_source)
Safety
REAPER can crash if you pass an invalid pointer.
pub fn GetNumChannels(&self) -> c_int
pub fn GetSampleRate(&self) -> f64
pub fn GetLengthBeats(&self) -> f64
pub fn GetBitsPerSample(&self) -> c_int
pub fn GetPreferredPosition(&self) -> f64
sourcepub unsafe fn PropertiesWindow(&self, hwndParent: HWND) -> c_int
pub unsafe fn PropertiesWindow(&self, hwndParent: HWND) -> c_int
Safety
REAPER can crash if you pass an invalid pointer.
sourcepub unsafe fn GetSamples(&self, block: *mut PCM_source_transfer_t)
pub unsafe fn GetSamples(&self, block: *mut PCM_source_transfer_t)
Safety
REAPER can crash if you pass an invalid pointer.
sourcepub unsafe fn GetPeakInfo(&self, block: *mut PCM_source_peaktransfer_t)
pub unsafe fn GetPeakInfo(&self, block: *mut PCM_source_peaktransfer_t)
Safety
REAPER can crash if you pass an invalid pointer.
sourcepub unsafe fn SaveState(&self, ctx: *mut ProjectStateContext)
pub unsafe fn SaveState(&self, ctx: *mut ProjectStateContext)
Safety
REAPER can crash if you pass an invalid pointer.
sourcepub unsafe fn LoadState(
&self,
firstline: *const c_char,
ctx: *mut ProjectStateContext
) -> c_int
pub unsafe fn LoadState(
&self,
firstline: *const c_char,
ctx: *mut ProjectStateContext
) -> c_int
Safety
REAPER can crash if you pass an invalid pointer.
pub fn Peaks_Clear(&self, deleteFile: bool)
pub fn PeaksBuild_Begin(&self) -> c_int
pub fn PeaksBuild_Run(&self) -> c_int
pub fn PeaksBuild_Finish(&self)
Trait Implementations
sourceimpl Debug for PCM_source
impl Debug for PCM_source
sourceimpl Default for PCM_source
impl Default for PCM_source
sourceimpl Hash for PCM_source
impl Hash for PCM_source
sourceimpl PartialEq<PCM_source> for PCM_source
impl PartialEq<PCM_source> for PCM_source
sourcefn eq(&self, other: &PCM_source) -> bool
fn eq(&self, other: &PCM_source) -> bool
impl Eq for PCM_source
impl StructuralEq for PCM_source
impl StructuralPartialEq for PCM_source
Auto Trait Implementations
impl RefUnwindSafe for PCM_source
impl !Send for PCM_source
impl !Sync for PCM_source
impl Unpin for PCM_source
impl UnwindSafe for PCM_source
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
sourcefn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read moresourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read moresourcefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read moresourcefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more