(data: &ParamData, _path: &[u32])
| 149 | Self::AtClockMusical(value) |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | /// An absolute audio clock instant in units of seconds. |
| 154 | #[repr(transparent)] |
| 155 | #[derive(Default, Debug, Clone, Copy, PartialEq, PartialOrd)] |
| 156 | #[cfg_attr(feature = "bevy_reflect", derive(bevy_reflect::Reflect))] |
| 157 | #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] |
| 158 | pub struct InstantSeconds(pub f64); |
| 159 | |
| 160 | impl InstantSeconds { |
| 161 | pub const ZERO: Self = Self(0.0); |
| 162 | |
| 163 | pub const fn new(seconds: f64) -> Self { |
| 164 | Self(seconds) |
nothing calls this directly
no outgoing calls
no test coverage detected