Struct oxygengine_audio::component::AudioSource[][src]

pub struct AudioSource { /* fields omitted */ }

Implementations

impl AudioSource[src]

pub fn new(audio: Cow<'static, str>, streaming: bool) -> Self[src]

pub fn new_play(audio: Cow<'static, str>, streaming: bool, play: bool) -> Self[src]

pub fn new_complex(
    audio: Cow<'static, str>,
    streaming: bool,
    looped: bool,
    playback_rate: Scalar,
    volume: Scalar,
    play: bool
) -> Self
[src]

pub fn audio(&self) -> &str[src]

pub fn streaming(&self) -> bool[src]

pub fn looped(&self) -> bool[src]

pub fn set_looped(&mut self, looped: bool)[src]

pub fn playback_rate(&self) -> Scalar[src]

pub fn set_playback_rate(&mut self, playback_rate: Scalar)[src]

pub fn volume(&self) -> Scalar[src]

pub fn set_volume(&mut self, volume: Scalar)[src]

pub fn current_time(&self) -> Option<Scalar>[src]

pub fn must_play(&self) -> bool[src]

pub fn play(&mut self)[src]

pub fn stop(&mut self)[src]

pub fn is_ready(&self) -> bool[src]

Trait Implementations

impl Clone for AudioSource[src]

impl Component for AudioSource[src]

type Storage = FlaggedStorage<Self, VecStorage<Self>>

Associated storage type for this component.

impl Debug for AudioSource[src]

impl Default for AudioSource[src]

impl<'de> Deserialize<'de> for AudioSource[src]

impl From<AudioSourceConfig> for AudioSource[src]

impl PrefabProxy<AudioSourceConfig> for AudioSource[src]

impl Serialize for AudioSource[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, C> ComponentContainerModify<'a, ComponentContainer<'a, C>> for C where
    C: Component, 
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: Any, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryDefault for T where
    T: Default

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.