Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement track preloading for gapless playback #532

Merged
merged 5 commits into from
Feb 12, 2023

Conversation

supremesnickers
Copy link
Contributor

This adds librespot track preloading and a new setting for gapless playback.

Fixes #193 and #502.

@Diegovsky
Copy link
Collaborator

LGTM!

@xou816
Copy link
Owner

xou816 commented Feb 12, 2023

hey! thanks for the contribution, sorry about the long wait!

thanks for the review Diegovsky :)

lets see how the CI goes

@@ -137,6 +140,11 @@ impl SpotifyPlayer {
.load(track, true, 0);
Ok(())
}
Command::PlayerPreload(track) => {
let player = player.as_mut().ok_or(SpotifyError::PlayerNotReady)?;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let player = player.as_mut().ok_or(SpotifyError::PlayerNotReady)?;
let player = self.player.as_mut().ok_or(SpotifyError::PlayerNotReady)?;

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that makes sense. I skimmed it over because the code looked correct lol. Anyhow, I will look more carefully in the future :)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh no no it was okay! its just that I had pushed to develop in the meantime and things needed adjusting, but it was all good!

@xou816 xou816 merged commit 8c39cef into xou816:development Feb 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Gapless playback
3 participants