Struct yy_typings::sounds::Sound [−][src]
pub struct Sound {Show 15 fields
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,
pub resource_version: ResourceVersion,
pub name: String,
pub tags: Tags,
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.
parent: ViewPath
The parent in the Gms2 virtual file system, ie. the parent which a user would see in the Navigation Pane in Gms2. This has no relationship to the actual operating system’s filesystem.
resource_version: ResourceVersion
The resource version of this yy file. At default 1.0.
name: String
The name of the object. This is the human readable name used in the IDE.
The tags given to the object.
resource_type: ConstGmSound
The resource type, always the same for sounds.
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
Auto Trait Implementations
impl RefUnwindSafe for Sound
impl UnwindSafe for Sound
Blanket Implementations
Mutably borrows from an owned value. Read more