Pulseaudio configuration

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Sani
Level 1
Level 1
Posts: 1
Joined: Tue May 17, 2022 1:21 pm
Location: Dhaka, Bangladesh

Pulseaudio configuration

Post by Sani »

Hi. This is my first post on any Linux forum. I'm a novice Linux user. I changed the default-sample-format and default-sample-rate in daemon.conf and restarted pulseaudio from the Terminal and even restarted my PC but my settings do nothing. Although I changed the default-sample-format to s24le and default-sample-rate to 96000, pacmd list-sinks | grep "sample spec" returns the following output.

sample spec: s16le 2ch 44100Hz
sample spec: s16le 2ch 44100Hz

Changing these may not make any noticeable difference since I have cheap earbuds. I'm more interested in learning. I would really appreciate it if someone pointed out what I'm doing wrong.
Last edited by LockBot on Mon Mar 27, 2023 10:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
cpedretti
Level 3
Level 3
Posts: 199
Joined: Tue Mar 10, 2020 12:06 am

Re: Pulseaudio configuration

Post by cpedretti »

Sani wrote: Sat Oct 01, 2022 2:22 am Hi. This is my first post on any Linux forum. I'm a novice Linux user. I changed the default-sample-format and default-sample-rate in daemon.conf and restarted pulseaudio from the Terminal and even restarted my PC but my settings do nothing. Although I changed the default-sample-format to s24le and default-sample-rate to 96000, pacmd list-sinks | grep "sample spec" returns the following output.

sample spec: s16le 2ch 44100Hz
sample spec: s16le 2ch 44100Hz

Changing these may not make any noticeable difference since I have cheap earbuds. I'm more interested in learning. I would really appreciate it if someone pointed out what I'm doing wrong.
On how to configure (pulseaudio): edit with sudo and your favorite editor "/etc/pulse/daemon.conf" and look for the following lines:

; default-sample-format = s16le
; default-sample-rate = 44100

uncomment by removing the ';' and change settings to your liking. E.g.:

default-sample-format = s16le
default-sample-rate = 44100

Then restart pulseaudio (with your user account, no sudo):

pulseaudio -k


Source
AMD Ryzen 7 3700X - 32GB DDR4 RGB White - RTX4060TI O8GB White- SSD NVME Crucial P5 500GB - Mobo Gigabyte AORUS ELITE B550 V2 - PSU Corsair RM750 White - Case Corsair 5000D Airflow White 7 fans AF120 ARGB - AIO Corsair H100I Cappelix 240 White
User avatar
Prsman
Level 4
Level 4
Posts: 399
Joined: Tue Nov 17, 2015 3:15 pm

Re: Pulseaudio configuration

Post by Prsman »

This is my config and how to I use after a new install. Change to your needs.

Code: Select all

Audio change for the better


pacmd lists-sinks | grep sample



xed admin:///etc/pulse/daemon.conf

change:

; resample-method = speex-float-1
resample-method = src-sinc-medium-quality

; default-sample-format = s16le
default-sample-format = s24le

; default-sample-rate = 44100
default-sample-rate = 48000

save


pulseaudio -k
pulseaudio --start

pacmd list-sinks | grep sample

done
Locked

Return to “Other topics”