Struct yy_typings::sound::Sound
source · [−]pub struct Sound {
pub common_data: CommonData<ConstGmSound>,
pub compression: Compression,
pub volume: f64,
pub preload: bool,
pub bit_rate: BitRate,
pub sample_rate: SampleRate,
pub output: Output,
pub bit_depth: BitDepth,
pub audio_group_id: AudioGroupId,
pub sound_file: String,
pub duration: f64,
pub parent: ViewPath,
}
Fields
common_data: CommonData<ConstGmSound>
compression: Compression
The type of compression for the file.
volume: f64
The volume of the file.
preload: bool
Whether the sound is “preloaded” or not. I don’t know what this actually does.
bit_rate: BitRate
The bitrate of the audio. Higher is better I think? Honestly lol, knowing what “bitrate” means is for fuckin nerds This is in “kbps” apparently, so probably kilobits (bytes?) per second. Look, no one knows.
sample_rate: SampleRate
SAMPLE RATE?? I didn’t know BITRATE you think i’m gonna know “SAMPLE RATE” it’s the rate of the samples go fuck yourself
output: Output
The kind of the sound for mono/stereo.
bit_depth: BitDepth
The quality of the sound.
audio_group_id: AudioGroupId
This is the Path to the Audio Group Id.
sound_file: String
This is a path to the Audio file, which will be the same name as the sound file generally. If there is no sound set up for this asset, then this field will be an empty string.
duration: f64
The duration of the sound in seconds, such as 12.4
for 12 seconds and 400 miliseconds.
parent: ViewPath
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Sound
impl<'de> Deserialize<'de> for Sound
sourcefn 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
sourceimpl PartialEq<Sound> for Sound
impl PartialEq<Sound> for Sound
impl StructuralPartialEq for Sound
Auto Trait Implementations
impl RefUnwindSafe for Sound
impl Send for Sound
impl Sync for Sound
impl Unpin for Sound
impl UnwindSafe for Sound
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more