pub struct AudioEvent {
pub part_index: u32,
pub part_name: String,
pub frame_no: u32,
pub source: u32,
pub sound_name: String,
pub sound_list_name_hash: u32,
pub sound_name_hash: u32,
pub loop_num: i32,
}Expand description
An audio trigger. The player never produces sound: this says what to play and how many times, and the host feeds its own audio stack.
Fields§
§part_index: u32§part_name: StringThe part’s name as authored, or empty when the pack has none for it.
frame_no: u32The frame the key is authored on, which is not necessarily the frame it was noticed on: one update can step across several and reports every key in between.
source: u32The source that fired it — see SsEvent::source.
sound_name: StringThe alias as authored, kept for diagnostics and for hosts that key their own audio by name.
sound_list_name_hash: u32Addresses the SoundList, and the SoundFile within it — the pair a
host resolves against the pack when it wants the file rather than the
name.
sound_name_hash: u32§loop_num: i32How many times to play it. SpriteStudio has no infinite audio loop, so this is a count rather than a flag.
Trait Implementations§
Source§impl Clone for AudioEvent
impl Clone for AudioEvent
Source§impl Debug for AudioEvent
impl Debug for AudioEvent
Source§impl PartialEq for AudioEvent
impl PartialEq for AudioEvent
impl StructuralPartialEq for AudioEvent
Auto Trait Implementations§
impl Freeze for AudioEvent
impl RefUnwindSafe for AudioEvent
impl Send for AudioEvent
impl Sync for AudioEvent
impl Unpin for AudioEvent
impl UnsafeUnpin for AudioEvent
impl UnwindSafe for AudioEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more