pub trait OfflineAudioContextMethods {
    // Required methods
    fn Length(&self) -> u32;
    fn GetOncomplete(&self) -> Option<Rc<EventHandlerNonNull>>;
    fn SetOncomplete(&self, value: Option<Rc<EventHandlerNonNull>>);
    fn StartRendering(&self, _comp: InRealm<'_>, _can_gc: CanGc) -> Rc<Promise>;
    fn Constructor(
        global: &Window,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        contextOptions: &OfflineAudioContextOptions,
    ) -> Result<Root<Dom<OfflineAudioContext>>, Error>;
    fn Constructor_(
        global: &Window,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        numberOfChannels: u32,
        length: u32,
        sampleRate: Finite<f32>,
    ) -> Result<Root<Dom<OfflineAudioContext>>, Error>;
}

Required Methods§

source

fn Length(&self) -> u32

source

fn GetOncomplete(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOncomplete(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn StartRendering(&self, _comp: InRealm<'_>, _can_gc: CanGc) -> Rc<Promise>

source

fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, contextOptions: &OfflineAudioContextOptions, ) -> Result<Root<Dom<OfflineAudioContext>>, Error>

source

fn Constructor_( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, numberOfChannels: u32, length: u32, sampleRate: Finite<f32>, ) -> Result<Root<Dom<OfflineAudioContext>>, Error>

Object Safety§

This trait is not object safe.

Implementors§