sysaudio: pipewire backend

missing features:\n - volume adjustment\n - device watcher\n - device listing (default device)
This commit is contained in:
Ali Chraghi 2023-01-19 17:32:46 +03:30 committed by Stephen Gutekanst
parent 1b375f70ce
commit bb6a654c90
4 changed files with 347 additions and 2 deletions

View file

@ -33,6 +33,8 @@ pub fn Sdk(comptime deps: anytype) type {
step.linkFramework("CoreFoundation");
step.linkFramework("CoreAudio");
} else if (step.target.toTarget().os.tag == .linux) {
step.addCSourceFile(sdkPath("/src/pipewire/sysaudio.c"), &.{"-std=gnu99"});
step.linkSystemLibrary("pipewire-0.3");
step.linkSystemLibrary("asound");
step.linkSystemLibrary("pulse");
step.linkSystemLibrary("jack");