pub trait AudioBufferSourceNodeMethods<D: DomTypes> {
    // Required methods
    fn GetBuffer(&self) -> Result<Option<Root<Dom<AudioBuffer>>>, Error>;
    fn SetBuffer(&self, value: Option<&AudioBuffer>) -> Result<(), Error>;
    fn PlaybackRate(&self) -> Root<Dom<AudioParam>>;
    fn Detune(&self) -> Root<Dom<AudioParam>>;
    fn Loop(&self) -> bool;
    fn SetLoop(&self, value: bool);
    fn LoopStart(&self) -> Finite<f64>;
    fn SetLoopStart(&self, value: Finite<f64>);
    fn LoopEnd(&self) -> Finite<f64>;
    fn SetLoopEnd(&self, value: Finite<f64>);
    fn Start(
        &self,
        when: Finite<f64>,
        offset: Option<Finite<f64>>,
        duration: Option<Finite<f64>>,
    ) -> Result<(), Error>;
    fn Constructor(
        global: &Window,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        context: &BaseAudioContext,
        options: &AudioBufferSourceOptions,
    ) -> Result<Root<Dom<AudioBufferSourceNode>>, Error>;
}

Required Methods§

source

fn GetBuffer(&self) -> Result<Option<Root<Dom<AudioBuffer>>>, Error>

source

fn SetBuffer(&self, value: Option<&AudioBuffer>) -> Result<(), Error>

source

fn PlaybackRate(&self) -> Root<Dom<AudioParam>>

source

fn Detune(&self) -> Root<Dom<AudioParam>>

source

fn Loop(&self) -> bool

source

fn SetLoop(&self, value: bool)

source

fn LoopStart(&self) -> Finite<f64>

source

fn SetLoopStart(&self, value: Finite<f64>)

source

fn LoopEnd(&self) -> Finite<f64>

source

fn SetLoopEnd(&self, value: Finite<f64>)

source

fn Start( &self, when: Finite<f64>, offset: Option<Finite<f64>>, duration: Option<Finite<f64>>, ) -> Result<(), Error>

source

fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, context: &BaseAudioContext, options: &AudioBufferSourceOptions, ) -> Result<Root<Dom<AudioBufferSourceNode>>, Error>

Object Safety§

This trait is not object safe.

Implementors§