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

feat: support to use pipewire #530

Merged
merged 2 commits into from
Jul 19, 2023
Merged

Conversation

dengbo11
Copy link
Contributor

audio moudule support to use pipewire

Log:

audio1/audio.go Outdated
var errBuf bytes.Buffer

// 如果pulseaudio 音频服务启动失败,尝试去启动pipewire音频服务
Copy link
Member

Choose a reason for hiding this comment

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

直接判断有 pipewire.service 还是 pulseaudio.service 呗

Copy link
Member

Choose a reason for hiding this comment

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

可以先 exec.Command(cmdSystemctl, "--user", "list-unit-files", "pulseaudio.service"),通过返回 0/1 确定服务是否存在,再启动对应服务。

@dengbo11 dengbo11 force-pushed the fix-bug branch 3 times, most recently from a222441 to b89b281 Compare July 18, 2023 07:43
audio moudule support to use pipewire

Log:
there is already a retry mechanism for using systemd to start services
so don't need to manual to retry

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

4 participants