nick42d / youtui

TUI and API for YouTube Music written in Rust
MIT License
39 stars 4 forks source link

RFE: Seamless track transition #149

Open rkratky opened 3 weeks ago

rkratky commented 3 weeks ago

Would it possible to (optionally) eliminate the tiny gap between subsequent tracks? This would be especially nice for classical music and concept albums that are meant to be listened to without pauses between tracks.

nick42d commented 3 weeks ago

Gapless playback should be possible with rodio's Sink type, as the next source can be appended in advance. The accounting to keep track of what's currently playing will be a little more complex, but I agree that this should be implemented in youtui

nick42d commented 3 weeks ago

This will be added to the roadmap as part of #151

nick42d commented 2 weeks ago

I have partially implemented this in #151. Songs will be queued up on the player ahead of time, which should significantly reduce the gap, but not eliminate it in all cases. I believe complete gapless playback is now blocked, as symphonia does not support gapless for AAC format (which is what we get from YTM). https://docs.rs/symphonia/latest/symphonia/