added music theory #5
Loading…
Reference in a new issue
No description provided.
Delete branch "gallant/catbox3d:master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
idk if this may cause shenanigans
Great PR! However, there's a couple style changes that I'd like to get out of the way.
play
should return theJoinHandle
returned bythread::spawn
play
out ofimpl Game
. In my opinion, Game should only contain things which directly affect the game loop.play
does not.play
method. Good docs make happy users (and other developers).Thanks for this PR, if you just fix these things, I'll merge it.
Also, please put this behind a feature flag; we don't want people to pull in dependencies for audio if they're not going to use it.
Thanks!
Thanks for the commit! As before, please put the
play
function behind a feature flag.I don't think you need to bind the result of
thread::spawn
into its own variable here. You should just be able to remove the semicolon on line 793 and take advantage of Rust's implicit return syntax. This way, you can bypass the need for a variable entirely.Also, if you could, please have
play
be generic overAsRef<Path>
for the path to the audio file? This will allow more flexibility for users, keep allocations to a minimum, and allow users to specify a path containing invalid unicode characters.If you want, I can merge this into a development branch and make these changes myself; just let me know how you want to proceed with this PR.
i'm not exactly sure how to make those changes so it would be really helpful if you did that haha
Hopefully this works, set audio as a default crate so they can opt out if they wish :)
WIP: added music theoryto added music theory