Skip to content
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

Add comment describing how speed.rs achieves its speedup #566

Open
dvdsk opened this issue Mar 31, 2024 · 5 comments
Open

Add comment describing how speed.rs achieves its speedup #566

dvdsk opened this issue Mar 31, 2024 · 5 comments
Assignees

Comments

@dvdsk
Copy link
Collaborator

dvdsk commented Mar 31, 2024

Add comment describing how speed.rs achieves its speedup

  • might not be obvious to a reader it relies on the samplerateconverter to do its thing.
  • it should document it will raise the frequency
  • current doc comment is plain wrong
@dvdsk dvdsk self-assigned this Mar 31, 2024
@ugochukwu-850
Copy link

Hello @dvdsk I noticed you already assigned yourself this task. I am interested in contributing on it as my first contribution so I dont know if you are done with it or if I can consider working on it .

@dvdsk
Copy link
Collaborator Author

dvdsk commented Sep 29, 2024

Its a small chore I planned for myself, but I have not done it yet :)

Might be a good first issue it requires some familiarity with the rodio code base, some knowledge of audio processing and finally the patience to write good documentation. Its all yours, have fun and thanks for the help 👍

@ugochukwu-850
Copy link

@dvdsk I am have figured out how it works and I have quite a documentation , but I have a small problem , where should i make this documentation.

I am considering making a module documentation of the Speed.rs module , explaining how the Speed struct actually effects the Source trait and how it alter sound speed ; and also making a function doc - showing an example noting the change in pitch - over the set_speed() function . Should I go ahead with this approach , I was considering it , because , it would help future contributors and also end users of the crate as most may never see the docs over speed.rs itself , and some might not intuitively know that altering the speed would affect pitch .

Once you clear me on this , I would commit my changes and make a pull .
Thank you .

ugochukwu-850 pushed a commit to ugochukwu-850/rodio that referenced this issue Oct 4, 2024
Documented how playback speed mutation works and the effects with examples
@dvdsk
Copy link
Collaborator Author

dvdsk commented Oct 5, 2024

Good question, until a few days ago we hadn't figured it out yet. We are adding a contributors guide now. We decided that for effects (like speedup) the best place for the documentation is in src/source/mod.rs at the trait method that applies the effect. So Source::speedup.

and also making a function doc - showing an example noting the change in pitch - over the set_speed() function

Very nice! you could maybe add the example as part of the docs on the Source::speedup method. Depends on how big it gets of course.

ugochukwu-850 pushed a commit to ugochukwu-850/rodio that referenced this issue Oct 5, 2024
Documented how playback speed mutation works and the effects with examples
@ugochukwu-850
Copy link

@dvdsk I have made the PR for this issue . Please do well to check it out and merge #630 . I would go ahead and make the PR for the other Issue I created yesterday

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants