tramhao / termusic

Music Player TUI written in Rust
GNU General Public License v3.0
962 stars 42 forks source link

Refactor GStreamer backend to have a abstracted Playbin #293

Closed hasezoey closed 2 months ago

hasezoey commented 2 months ago

This PR abstracts the playbin so that it can be cloned and called from different threads (moved), it also does:

the ultimate goal was to remove the speed-hack that is in place, but i failed at that as i couldnt find a place to properly apply the seek event on initial start and track change (i always ran into issues like the queries position still being of the old track or heavy audio cracking on skip to next track or no speed being applied at all)