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

enable pulseaudio #193

Merged
merged 5 commits into from
Oct 25, 2023
Merged

enable pulseaudio #193

merged 5 commits into from
Oct 25, 2023

Conversation

gouzhuang
Copy link
Contributor

ALSA might hold the sound device exclusively, which prevents the host from playing any sound. This pull request replaces ALSA with pulseaudio by configuring the container as a client to the pulse server running on the host.

@CLAassistant
Copy link

CLAassistant commented Feb 14, 2023

CLA assistant check
All committers have signed the CLA.

@huan
Copy link
Owner

huan commented Feb 14, 2023

Thanks for the improvement!

Could you please explain that why the uid is hard coded as 1000 in your code?

@gouzhuang
Copy link
Contributor Author

Thanks for the improvement!

Could you please explain that why the uid is hard coded as 1000 in your code?

That could be improved if I can get the uid of user in the container, but i have no idea how to do that. I think the uid is almost fixed to 1000. Any suggestions?

@gouzhuang
Copy link
Contributor Author

another commit fixing hard coded uid

Copy link
Owner

@huan huan left a comment

Choose a reason for hiding this comment

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

I'm not entirely familiar with the sound system under Linux.

However, this PR looks to make sense.

Could you please invite 1-2 developers who understand your PR better than me and give an improvement to it?

Thank you very much!

pulse-client.conf Outdated Show resolved Hide resolved
dochat.sh Outdated Show resolved Hide resolved
Copy link
Owner

@huan huan left a comment

Choose a reason for hiding this comment

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

LGTM

Please test it after the new version is published and ensure it works as expected.

@huan huan merged commit 30a110f into huan:main Oct 25, 2023
3 checks passed
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.

3 participants