Trait script::dom::bindings::codegen::Bindings::AudioBufferSourceNodeBinding::AudioBufferSourceNode_Binding::AudioBufferSourceNodeMethods
source · pub trait AudioBufferSourceNodeMethods {
// 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§
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>
Object Safety§
This trait is not object safe.