-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Questions in termusic repo #637
Comments
That does sound like a good idea. Alternatively i think its possible to custom-add something similar to
I meant it in the context of still being able to use
I did not test if there actually is a desync, but i noted it as possible as, if i understand correctly, After having a look at those things again, with the current rodio structure it seems possible that we also could just make a custom |
Yes anything that implements the Source trait will work. If you can think of something that specifically works better with termusic go for it! |
So you would like Sink to add controls for Sources defined outside of rodio? I am also intrigued by the soundtouch source modifier what does it do? |
Yes but only those applied after track_position. If you use the speed option from the From the Sink::get_pos docs:
wait... thats wrong.... Okay I am going to check this out and report back! |
Nope its correct. |
Yes, that is a very good idea. Originally that would have been the only possibility. I think Rodio's Sink was made because users found that hard to do and "just wanted to play some music". Its design however is questionable. We are going to rewrite it and make breaking changes to it, some discussion here: #624 and you have seen the user stories issue where we are gathering feedback so we can decide what the new sink like thing should be. Making your own Sink like structure is quite doable. I have explained part of it here: #634 (second paragraph of my first response). Let me know if you need any help. |
The soundtouch source modifier is currently just a wrapper for
Not quite, for this specific example, i would like to just replace rodio's |
These questions originated in the discussions part of another repo which uses rodio: tramhao/termusic#203 and where asked by @hasezoey
I have copied some of the rodio api related questions here so they (and the answers/discussion that might follow) can also benefit other rodio users.
You might be able to do that using EmptyCallback. Its a source that will never play audio but will execute arbitrary code when it runs. You can append an
EmptyCallback
after each source. Let me know if that sounds goodYou already seem to be using
PeriodicCallback
. Adding effects is done by compiling the source with those effects applied but configured such that they have no effect. For example a speed of1.0
does nothing to the underlying source. Some source effects likeautomatic_gain_control
have an enable/disable toggle.That must be a bug in rodio. Please open an issue and provide a minimal example where the bug is easy to see so we can fix it.
The text was updated successfully, but these errors were encountered: