-
Notifications
You must be signed in to change notification settings - Fork 694
Expose possible mixer opening errors #1488
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
base: dev
Are you sure you want to change the base?
Expose possible mixer opening errors #1488
Conversation
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.
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
ec4e265
to
4b45023
Compare
@ers4691, @kingosticks Could you take a look at the changes and maybe give me some feedback if that is what you had in mind? I just want to be sure I didn't misunderstood the expected behavior you discussed in #1478. Tl;dr; The binary exits with 1 when encountering issues when starting the mixer. For example when a requested |
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.
Great to get rid of those panics.
I'm not quite there yet. But think about the use case: I don't know whether it's worth the effort. Thanks for fixing the panic error. |
I see. Thanks for that input, I think I understand now what you try to do. It's probably possible (at least when you use zeroconf), but would overload this PR for sure. Maybe you also search for a solution where |
Tho if you use an already authenticated librespot device, we would need to change something in the connect implementation. Otherwise this whole idea of a late player initialization wouldn't be currently possible as the code in the connect implementation is in our control and can't be modified. If that is what you desire you could open a feature request and we might consider/implement it in the future. In terms of work to do, I currently don't see a lot of roadblocks, but that is something you really see when implementing it :) |
This should address the possible panic found in #1478 by exposing the errors that might occur while opening a device.
The binary will now exit when it encounters an issue while opening the mixer.
Fixes #1478