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: bool
looped: bool
playback_rate: Scalar
volume: Scalar
play: bool
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
fn from_prefab_with_extras(
data: Value,
_named_entities: &HashMap<String, Entity, RandomState>,
_state_token: ID<PhantomData<dyn State + Send + Sync + 'static>>
) -> Result<Self, PrefabError>
fn from_proxy_with_extras(
proxy: AudioSourcePrefabProxy,
_: &HashMap<String, Entity>,
_: StateToken
) -> Result<Self, PrefabError>
Auto Trait Implementations
impl RefUnwindSafe for AudioSourceConfig
impl Send for AudioSourceConfig
impl Sync for AudioSourceConfig
impl Unpin for AudioSourceConfig
impl UnwindSafe for AudioSourceConfig
Blanket Implementations
Mutably borrows from an owned value. Read more