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

Audio lost on windows after session lock / user switch #128

Open
serpilliere opened this issue Jan 19, 2023 · 1 comment
Open

Audio lost on windows after session lock / user switch #128

serpilliere opened this issue Jan 19, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@serpilliere
Copy link
Contributor

serpilliere commented Jan 19, 2023

The bug is triggered with the following steps:

  • a user logs on a windows system
  • launch sanzu_client (with sound)
  • the user locks its session
  • another user log into the machine (switch user)

The sanzu_client then loses its connection to the audio output. Windows seems to 'disconnect' the audio sound card (to give access to the new logged user)

If the second user disconnect and the first user re-login, sanzu still runs, but without sound.

@serpilliere
Copy link
Contributor Author

The error is catch here:

let err_fn = |err| error!("An error occurred on stream: {}", err);

We may mark the decoder as in error mode, which may later be catched in :

pub fn push(&mut self, data: Vec<u8>) {

which in turn may be catched in the main code. This will allow the main process to be aware that the sound is in error state, and try to re init the sound output.

@serpilliere serpilliere added the bug Something isn't working label Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant