pub trait AudioContextMethods {
    // Required methods
    fn BaseLatency(&self) -> Finite<f64>;
    fn OutputLatency(&self) -> Finite<f64>;
    fn GetOutputTimestamp(&self) -> AudioTimestamp;
    fn Suspend(&self, _comp: InRealm<'_>, _can_gc: CanGc) -> Rc<Promise>;
    fn Close(&self, _comp: InRealm<'_>, _can_gc: CanGc) -> Rc<Promise>;
    fn CreateMediaElementSource(
        &self,
        mediaElement: &HTMLMediaElement,
        _can_gc: CanGc,
    ) -> Result<Root<Dom<MediaElementAudioSourceNode>>, Error>;
    fn CreateMediaStreamSource(
        &self,
        mediaStream: &MediaStream,
        _can_gc: CanGc,
    ) -> Result<Root<Dom<MediaStreamAudioSourceNode>>, Error>;
    fn CreateMediaStreamTrackSource(
        &self,
        mediaStreamTrack: &MediaStreamTrack,
        _can_gc: CanGc,
    ) -> Result<Root<Dom<MediaStreamTrackAudioSourceNode>>, Error>;
    fn CreateMediaStreamDestination(
        &self,
        _can_gc: CanGc,
    ) -> Result<Root<Dom<MediaStreamAudioDestinationNode>>, Error>;
    fn Constructor(
        global: &Window,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        contextOptions: &AudioContextOptions,
    ) -> Result<Root<Dom<AudioContext>>, Error>;
}

Required Methods§

Object Safety§

This trait is not object safe.

Implementors§