pub enum OplBackend {
Oplon,
Custom(Arc<dyn Fn() -> Box<dyn OplCore> + Send + Sync>),
}Expand description
FM synthesis implementation selected at machine creation.
Variants§
Oplon
MIT-licensed clean-room core.
Custom(Arc<dyn Fn() -> Box<dyn OplCore> + Send + Sync>)
A factory invoked once per physical chip, before rendering starts.
Dual OPL2 calls it twice, producing independent cores. A custom core’s
methods must follow the allocation and native-rate contract of OplCore.
Trait Implementations§
Source§impl Clone for OplBackend
impl Clone for OplBackend
Source§impl Debug for OplBackend
impl Debug for OplBackend
Auto Trait Implementations§
impl !RefUnwindSafe for OplBackend
impl !UnwindSafe for OplBackend
impl Forget for OplBackend
impl Freeze for OplBackend
impl Send for OplBackend
impl Sync for OplBackend
impl Unpin for OplBackend
impl UnsafeUnpin for OplBackend
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