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

pulseaudio 15.0 対応 #39

Closed
tsutsui opened this issue Aug 15, 2021 · 1 comment
Closed

pulseaudio 15.0 対応 #39

tsutsui opened this issue Aug 15, 2021 · 1 comment

Comments

@tsutsui
Copy link
Owner

tsutsui commented Aug 15, 2021

pkgsrc HEAD では pulseaudio が 15.0 に更新されている。

14.0 への更新時に中身の確認をしたかどうか忘れたが、
Live Image の ~/.config/pulse 以下に置いている設定ファイルについて
ベースファイルに更新があればそれぞれ更新する。

@tsutsui
Copy link
Owner Author

tsutsui commented Oct 2, 2021

一応いろいろ差分があるっぽい。
そもそも default.pamodule-rescue-streams 関連が削除されているが、ぱっと見て 14.0以前で忘れてる差分に見える。
が、あまり表の動作には現れなさそうな感じ。

とりあえず機械的に手動マージして作ってみる。

diff -ur /usr/pkg/etc/pulse/daemon.conf pulse/daemon.conf
--- /usr/pkg/etc/pulse/daemon.conf	2019-03-26 01:15:30.584519583 +0900
+++ pulse/daemon.conf	2021-10-03 04:33:05.726195980 +0900
@@ -11,12 +11,10 @@
 # General Public License for more details.
 #
 # You should have received a copy of the GNU Lesser General Public License
-# along with PulseAudio; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
-# USA.
+# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
 
 ## Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for
-## more information. Default values a commented out.  Use either ; or # for
+## more information. Default values are commented out.  Use either ; or # for
 ## commenting.
 
 ; daemonize = no
@@ -25,16 +23,18 @@
 ; allow-exit = yes
 ; use-pid-file = yes
 ; system-instance = no
+; local-server-type = user
 ; enable-shm = yes
+; enable-memfd = yes
 ; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
 ; lock-memory = no
 ; cpu-limit = no
 
- high-priority = yes
+; high-priority = yes
 ; nice-level = -11
 
- realtime-scheduling = yes
- realtime-priority = 5
+; realtime-scheduling = yes
+; realtime-priority = 5
 
 ; exit-idle-time = 20
 ; scache-idle-time = 20
@@ -42,7 +42,7 @@
 ; dl-search-path = (depends on architecture)
 
 ; load-default-script-file = yes
-; default-script-file = 
+; default-script-file = /usr/pkg/etc/pulse/default.pa
 
 ; log-target = auto
 ; log-level = notice
@@ -50,11 +50,17 @@
 ; log-time = no
 ; log-backtrace = 0
 
-; resample-method = speex-float-3
+; resample-method = speex-float-1
+; avoid-resampling = false
 ; enable-remixing = yes
-; enable-lfe-remixing = no
+; remixing-use-all-sink-channels = yes
+; remixing-produce-lfe = no
+; remixing-consume-lfe = no
+; lfe-crossover-freq = 0
 
-; flat-volumes = yes
+; flat-volumes = no
+
+; rescue-streams = yes
 
 ; rlimit-fsize = -1
 ; rlimit-data = -1
@@ -70,7 +76,7 @@
 ; rlimit-msgqueue = -1
 ; rlimit-nice = 31
 ; rlimit-rtprio = 9
-; rlimit-rttime = 1000000
+; rlimit-rttime = 200000
 
 ; default-sample-format = s16le
 ; default-sample-rate = 44100
@@ -78,5 +84,9 @@
 ; default-sample-channels = 2
 ; default-channel-map = front-left,front-right
 
-; default-fragments = 8
-; default-fragment-size-msec = 5
+; default-fragments = 4
+; default-fragment-size-msec = 25
+
+; enable-deferred-volume = yes
+; deferred-volume-safety-margin-usec = 8000
+; deferred-volume-extra-delay-usec = 0
diff -ur /usr/pkg/etc/pulse/default.pa pulse/default.pa
--- /usr/pkg/etc/pulse/default.pa	2021-08-12 07:32:31.979410874 +0900
+++ pulse/default.pa	2021-10-03 04:33:05.729494838 +0900
@@ -74,7 +74,6 @@
 #load-module module-rtp-send source=rtp.monitor
 
 
-
 ### Automatically restore the default sink/source when changed by the user
 ### during runtime
 ### NOTE: This should be loaded as early as possible so that subsequent modules
@@ -115,3 +114,8 @@
 ### Make some devices default
 #set-default-sink output
 #set-default-source input
+
+### Allow including a default.pa.d directory, which if present, can be used
+### for additional configuration snippets.
+.nofail
+.include /usr/pkg/etc/pulse/default.pa.d
diff -ur /usr/pkg/etc/pulse/system.pa pulse/system.pa
--- /usr/pkg/etc/pulse/system.pa	2021-08-12 07:32:31.981638338 +0900
+++ pulse/system.pa	2021-10-03 04:33:05.732623137 +0900
@@ -49,3 +49,8 @@
 
 ### Enable positioned event sounds
 load-module module-position-event-sounds
+
+### Allow including a system.pa.d directory, which if present, can be used
+### for additional configuration snippets.
+.nofail
+.include /usr/pkg/etc/pulse/system.pa.d

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

No branches or pull requests

1 participant