Struct oxygengine_audio::component::AudioSourceConfig[][src]

pub struct AudioSourceConfig {
    pub audio: Cow<'static, str>,
    pub streaming: bool,
    pub looped: bool,
    pub playback_rate: Scalar,
    pub volume: Scalar,
    pub play: bool,
}

Fields

audio: Cow<'static, str>streaming: boollooped: boolplayback_rate: Scalarvolume: Scalarplay: bool

Implementations

impl AudioSourceConfig[src]

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

pub fn audio(self, value: Cow<'static, str>) -> Self[src]

pub fn streaming(self, value: bool) -> Self[src]

pub fn looped(self, value: bool) -> Self[src]

pub fn playback_rate(self, value: Scalar) -> Self[src]

pub fn volume(self, value: Scalar) -> Self[src]

pub fn play(self, value: bool) -> Self[src]

Trait Implementations

impl Clone for AudioSourceConfig[src]

impl Debug for AudioSourceConfig[src]

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

impl From<AudioSourceConfig> for AudioSource[src]

impl Prefab for AudioSourceConfig[src]

impl PrefabProxy<AudioSourceConfig> for AudioSource[src]

impl Serialize for AudioSourceConfig[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<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, 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.