-
Notifications
You must be signed in to change notification settings - Fork 16
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
Fix: improve device id #360
Conversation
src/media_devices/mod.rs
Outdated
num_channels: u16, | ||
index: u8, | ||
) -> String { | ||
let mut hasher = FxHasher::default(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of manually hashing it is probably best to include a private struct with DeviceInfo and derive Hash on it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok done
.pre-commit-config.yaml
Outdated
@@ -64,7 +64,7 @@ repos: | |||
--locked, | |||
--workspace, | |||
--features, | |||
cubeb, | |||
cpal, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably be reverted and investigated separately
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem is that I was even not able to make a commit, because the pre-commit hook was crashing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I believe this would solve our issues. Let me know if you need help with my remarks
Thanks for the work! |
Ok cool, I'll let you know |
cf. #356
Note that I had to modify the pre-commit hook because for some reason cubeb build w/ CMake through clippy was failing, weird thing is that if I ran an example with the cubeb feature that was working...