Clear and skip
This PR still has some room for work, but this gives basic functionality for clear()ing and skip_one()ing Sinks. This seems like very useful functionality, and helps make the library more accessible.
There's also some simple formatting stuff done here, since cargo-fmt didn't work when I was using it due to an error in the .rustfmt.toml file. That's a simple enough to change to something else if need be :)
Closes? #171
Just saw a different PR where there was a comment to not fix cargo-fmt in a PR that does functionality. I'm reverting the commit that ran cargo-fmt.
Please for the love of god merge this! I'm really needing this basic functionality!
I tested this clear function, but after clear, the player will always generate an alsalib buffer underrun warning. Without clear it's no problem. my code is in https://github.com/tramhao/termusic/tree/dev/src .
Is there any status on this? If there's a blocker somewhere, I'm willing to lend a hand in any way I can. This functionality seems essential to a library like this.
First there is this:
This PR still has some room for work
I'm not sure exactly what there is left.
Also, a rebase is needed. And of course a proper review.
I think it's been too long since I first put this together, so if someone else wants to take this branch and run with it I would welcome them to it. I'm going to close this PR though.
This PR is continued by me in #442.