aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/outcome/sppulse.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-12-08 08:03:50 +0900
committerOphestra <cat@gensokyo.uk>2025-12-08 08:53:04 +0900
commit87781c765844409226804157546753b84ef3c6b4 (patch)
tree4fa7bdbe890979badada6c36183a2ff25b7b85a8 /internal/outcome/sppulse.go
parent0c38fb7b6a17bed9392a4cf46fc752bc2de8eb18 (diff)
treewide: include PipeWire op and enforce PulseAudio check
This fully replaces PulseAudio with PipeWire and enforces the PulseAudio check and error message. The pipewire-pulse daemon is handled in the NixOS module. Closes #26. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/outcome/sppulse.go')
-rw-r--r--internal/outcome/sppulse.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/outcome/sppulse.go b/internal/outcome/sppulse.go
index a2dc2401..e86fb3f8 100644
--- a/internal/outcome/sppulse.go
+++ b/internal/outcome/sppulse.go
@@ -29,7 +29,7 @@ type spPulseOp struct {
}
func (s *spPulseOp) toSystem(state *outcomeStateSys) error {
- if state.et&hst.EPulse == 0 {
+ if !state.directPulse || state.et&hst.EPulse == 0 {
return errNotEnabled
}