Skip to content

Commit

Permalink
gui: add ephemeral queue_runtime state
Browse files Browse the repository at this point in the history
  • Loading branch information
hinto-janai committed Sep 4, 2023
1 parent e2a363c commit 98e6457
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gui/src/data/gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions gui/src/func/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 98e6457

Please sign in to comment.