Struct yy_typings::sound::Sound
source · [−]pub struct Sound {
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 resource_data: ResourceData,
pub resource_type: ConstGmSound,
}
Fields
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.
resource_data: ResourceData
Common resource data.
resource_type: ConstGmSound
The resource type, always the same for sounds.
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
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more