[−][src]Struct oxygengine_audio::component::AudioSource
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]
audio: Cow<'static, str>,
streaming: bool,
looped: bool,
playback_rate: Scalar,
volume: Scalar,
play: bool
) -> Self
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]
fn clone(&self) -> AudioSource
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl From<AudioSourceConfig> for AudioSource
[src]
fn from(config: AudioSourceConfig) -> Self
[src]
impl PrefabProxy<AudioSourceConfig> for AudioSource
[src]
fn from_proxy_with_extras(
proxy: AudioSourcePrefabProxy,
_: &HashMap<String, Entity>,
_: StateToken
) -> Result<Self, PrefabError>
[src]
proxy: AudioSourcePrefabProxy,
_: &HashMap<String, Entity>,
_: StateToken
) -> Result<Self, PrefabError>
impl Serialize for AudioSource
[src]
Auto Trait Implementations
impl RefUnwindSafe for AudioSource
impl Send for AudioSource
impl Sync for AudioSource
impl Unpin for AudioSource
impl UnwindSafe for AudioSource
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<'a, C> ComponentContainerModify<'a, ComponentContainer<'a, C>> for C where
C: Component,
[src]
C: Component,
fn fetch(world: &'a World, entity: Entity) -> ComponentContainer<'a, C>
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> Event for T where
T: Send + Sync + 'static,
T: Send + Sync + 'static,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: Any,
T: Any,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> TryDefault for T where
T: Default,
T: Default,
fn try_default() -> Result<T, String>
fn unwrap_default() -> Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,