Skip to content

Conversation

@casey
Copy link
Contributor

@casey casey commented Nov 25, 2025

Remove possibly stale comments related to #510.

I'm not sure if these are stale or not, but I noticed that #510 was merged (actually the successor PR, #585) a while ago, so I figure they might be.

@yara-blue
Copy link
Member

The idea behind these comments was to eventually implement error recovery when seeking.

A seek can fail and if we seek in a mix of two songs we can end up with one having successfully seeked and the other failing and staying at its original position. The commented code would make it so we would undo the seek in the first song if the second failed.

Looking at it now that is really unnecessary and over-complicated as it would require wrapping everything in TrackPosition to make it seekable. So yes we can strip these out.

A good followup would be implementing seek for these. That could simply forward the seek to each underlying source and eagerly return any error.

@yara-blue yara-blue merged commit 8a8ae9e into RustAudio:master Nov 25, 2025
9 checks passed
@casey casey deleted the stale-comments branch November 25, 2025 19:51
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.

2 participants