markjamesm / MusicSharp

MusicSharp is a lightweight TUI music player written in C#.
https://markjames.dev/blog/developing-a-cli-music-player-csharp/
GNU General Public License v3.0
57 stars 11 forks source link

Pausing an audio file resets the now playing progressbar #33

Closed markjamesm closed 3 years ago

markjamesm commented 3 years ago

A progress bar has been implemented in Tui.cs, but there is a bug. Namely, when pausing an audio file and then resuming playback, the progressbar position is reset to 0.

The TimePlayed() method adds a timeout to the mainloop and calculates the progress bar position based on total tracklength. It doesn't however, take into consideration pausing.

Steps to reproduce:

markjamesm commented 3 years ago

This issue has now been resolved as of this commit:

https://github.com/markjamesm/MusicSharp/commit/c45056be6d232f9f60cb8ec3759665239a7bc275