pub trait PCM_source {
Show 24 methods fn Duplicate(&mut self) -> *mut PCM_source; fn IsAvailable(&mut self) -> bool; fn GetType(&mut self) -> *const c_char; fn SetFileName(&mut self, newfn: *const c_char) -> bool; fn GetNumChannels(&mut self) -> c_int; fn GetSampleRate(&mut self) -> f64; fn GetLength(&mut self) -> f64; fn PropertiesWindow(&mut self, hwndParent: HWND) -> c_int; fn GetSamples(&mut self, block: *mut PCM_source_transfer_t); fn GetPeakInfo(&mut self, block: *mut PCM_source_peaktransfer_t); fn SaveState(&mut self, ctx: *mut ProjectStateContext); fn LoadState(
        &mut self,
        firstline: *const c_char,
        ctx: *mut ProjectStateContext
    ) -> c_int; fn Peaks_Clear(&mut self, deleteFile: bool); fn PeaksBuild_Begin(&mut self) -> c_int; fn PeaksBuild_Run(&mut self) -> c_int; fn PeaksBuild_Finish(&mut self); fn SetAvailable(&mut self, avail: bool) { ... } fn GetFileName(&mut self) -> *const c_char { ... } fn GetSource(&mut self) -> *mut PCM_source { ... } fn SetSource(&mut self, src: *mut PCM_source) { ... } fn GetLengthBeats(&mut self) -> f64 { ... } fn GetBitsPerSample(&mut self) -> c_int { ... } fn GetPreferredPosition(&mut self) -> f64 { ... } fn Extended(
        &mut self,
        call: c_int,
        parm1: *mut c_void,
        parm2: *mut c_void,
        parm3: *mut c_void
    ) -> c_int { ... }
}
Expand description

This is the Rust analog to the C++ virtual base class PCM_source.

An implementation of this trait can be passed to create_cpp_to_rust_pcm_source().

Required Methods

Provided Methods

Implementors