#[repr(C)]pub struct PCM_source {
pub vtable_: *const PCM_source__bindgen_vtable,
}
Expand description
Structs, types and constants defined by REAPER.
Fields§
§vtable_: *const PCM_source__bindgen_vtable
Implementations§
Source§impl 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§
Source§impl Debug for PCM_source
impl Debug for PCM_source
Source§impl Default for PCM_source
impl Default for PCM_source
Source§impl Hash for PCM_source
impl Hash for PCM_source
Source§impl PartialEq for PCM_source
impl PartialEq for PCM_source
impl Eq for PCM_source
impl StructuralPartialEq for PCM_source
Auto Trait Implementations§
impl Freeze for PCM_source
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn 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.Source§fn 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.