From 0dd95975195a408339d526f224ad71665610df4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Sun, 26 Mar 2023 18:59:10 +0200 Subject: [PATCH] create pulseaudio sink, fixes #267. --- .docker/base/default.pa | 3 +++ docs/changelog.md | 1 + docs/getting-started/configuration.md | 2 +- server/internal/config/capture.go | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.docker/base/default.pa b/.docker/base/default.pa index b0a26b10..fba8b556 100644 --- a/.docker/base/default.pa +++ b/.docker/base/default.pa @@ -1,5 +1,8 @@ #!/usr/bin/pulseaudio -nF +### Create virtual output device sink +load-module module-null-sink sink_name=audio_output sink_properties=device.description="Virtual\ Audio\ Output" + # Allow pulse audio to be accessed via TCP (from localhost only), to allow other users to access the virtual devices load-module module-native-protocol-unix socket=/tmp/pulseaudio.socket auth-anonymous=1 diff --git a/docs/changelog.md b/docs/changelog.md index 6ba1c051..1a59f5bd 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -22,6 +22,7 @@ - Improved chinese and korean characters support. - Disabled autolock for kde, so that it does not lock the screen when you are not using it. - Refactored autoplay, so that it will start playing audio, if it's allowed by the browser (by @urbanekpj). +- Renamed pulseaudio sink from `auto_null` to `audio_output`, because it was ignored by KDE. ## [n.eko v2.7](https://github.com/m1k1o/neko/releases/tag/v2.7) diff --git a/docs/getting-started/configuration.md b/docs/getting-started/configuration.md index cbba3bb8..d2e9c5cb 100644 --- a/docs/getting-started/configuration.md +++ b/docs/getting-started/configuration.md @@ -167,7 +167,7 @@ Flags: --cert string path to the SSL cert used to secure the neko server --control_protection control protection means, users can gain control only if at least one admin is in the room --cors strings list of allowed origins for CORS (default [*]) - --device string audio device to capture (default "auto_null.monitor") + --device string audio device to capture (default "audio_output.monitor") --display string XDisplay to capture (default ":99.0") --epr string limits the pool of ephemeral ports that ICE UDP connections can allocate from (default "59000-59100") --file_transfer_enabled enable file transfer feature (default false) diff --git a/server/internal/config/capture.go b/server/internal/config/capture.go index 820557a6..efb8b7d2 100644 --- a/server/internal/config/capture.go +++ b/server/internal/config/capture.go @@ -92,7 +92,7 @@ func (Capture) Init(cmd *cobra.Command) error { // audio // - cmd.PersistentFlags().String("device", "auto_null.monitor", "audio device to capture") + cmd.PersistentFlags().String("device", "audio_output.monitor", "audio device to capture") if err := viper.BindPFlag("device", cmd.PersistentFlags().Lookup("device")); err != nil { return err }