diff --git a/gui/src/data/gui.rs b/gui/src/data/gui.rs index 5f96ecc6..92ddfae9 100644 --- a/gui/src/data/gui.rs +++ b/gui/src/data/gui.rs @@ -67,6 +67,8 @@ pub struct Gui { /// A local copy of shukusai's `AUDIO_STATE` /// so we don't have to lock it multiple times every loop. pub audio_state: AudioState, + /// Total runtime of the queue. + pub queue_runtime: readable::Runtime, /// A local copy of our seek time. /// This is the thing we send `Kernel` when /// we want to seek the audio. diff --git a/gui/src/func/init.rs b/gui/src/func/init.rs index cf23d8a3..b6d25c2a 100644 --- a/gui/src/func/init.rs +++ b/gui/src/func/init.rs @@ -249,6 +249,7 @@ impl crate::data::Gui { // AudioState. audio_state: AudioState::new(), + queue_runtime: readable::Runtime::zero(), audio_seek: 0, audio_leeway: now!(), last_song: None,