diff options
-rw-r--r-- | soundbox/pipewire.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/soundbox/pipewire.go b/soundbox/pipewire.go index 0443766..7ee38a2 100644 --- a/soundbox/pipewire.go +++ b/soundbox/pipewire.go @@ -13,6 +13,7 @@ import ( "log" "net" "os/exec" + "runtime" "sync" "unsafe" ) @@ -86,6 +87,10 @@ func StreamPipewireContext(ctx context.Context, targets []net.HardwareAddr) erro } defer lock.Unlock() + if runtime.GOOS != "linux" { + return fmt.Errorf("Only the GNU / Linux operating system is supported") + } + cmd := exec.CommandContext( ctx, "ffmpeg", |