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

Fix: improve device id #360

Merged
merged 6 commits into from
Sep 19, 2023
Merged

Fix: improve device id #360

merged 6 commits into from
Sep 19, 2023

Conversation

b-ma
Copy link
Collaborator

@b-ma b-ma commented Sep 6, 2023

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...

num_channels: u16,
index: u8,
) -> String {
let mut hasher = FxHasher::default();
Copy link
Owner

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok done

@@ -64,7 +64,7 @@ repos:
--locked,
--workspace,
--features,
cubeb,
cpal,
Copy link
Owner

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

Copy link
Collaborator Author

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

Copy link
Owner

@orottier orottier left a 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

@orottier orottier merged commit 0f5250c into orottier:main Sep 19, 2023
3 checks passed
@orottier
Copy link
Owner

Thanks for the work!
I reverted the pre-commit thing locally, let me know if you still run into issues on your side

@b-ma
Copy link
Collaborator Author

b-ma commented Sep 19, 2023

Ok cool, I'll let you know

@b-ma b-ma deleted the fix/device-id branch November 4, 2023 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants