Skip to main content

firewheel_graph/
backend.rs

1use bevy_platform::time::Instant;
2use core::time::Duration;
3use firewheel_core::node::StreamStatus;
4
5#[derive(Debug, Clone, PartialEq, Eq)]
6pub struct BackendProcessInfo {
7    pub frames: usize,
8    pub process_timestamp: Option<Instant>,
9    pub duration_since_stream_start: Duration,
10    pub input_stream_status: StreamStatus,
11    pub output_stream_status: StreamStatus,
12    pub dropped_frames: u32,
13
14    /// The estimated time between when this process loop was called and
15    /// when the data will be delivered to the output device for playback.
16    ///
17    /// If the audio backend does not provide this information, then set
18    /// this to `None`.
19    pub process_to_playback_delay: Option<Duration>,
20}