use crate::runtime;
#[derive(Debug, Clone, PartialEq)]
pub struct SoundClip {
pub file: String,
pub at: f64,
pub volume: f32,
pub fade_in: f64,
pub fade_out: f64,
pub trim_start: f64,
pub trim_end: Option<f64>,
pub priority: bool,
pub speech: bool,
}
#[derive(Debug, Clone, PartialEq)]
pub struct VoiceLine {
pub text: String,
pub at: f64,
pub seconds: f64,
}
pub fn record_sound(clip: SoundClip) {
runtime::with(|rt| rt.sounds.borrow_mut().push(clip));
}
pub fn record_voice(line: VoiceLine) {
runtime::with(|rt| rt.voices.borrow_mut().push(line));
}