Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Automatic Downsampling in ALSA/PulseAudio (Read 5015 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Automatic Downsampling in ALSA/PulseAudio

Hello Everyone,

I'm currently running a Linux Mint 13 setup with ALSA and Pulseaudio configured. I've gone through every configuration file on both ALSA and PA that I can find, attempting to put the settings to 24/96 output in every instance. I don't know whether ALSA or PA is to blame, but higher resolution files are being automatically downmixed to 16/48, which is less than ideal. These are the files I've edited:

/etc/pulse/daemon.conf
/usr/share/alsa/alsa.conf
~/.asoundrc

cat ~/.asoundrc:
defaults.pcm.!rate_converter "samplerate_best"   
defaults.pcm.dmix.!rate 96000   
defaults.pcm.dmix.!format S24_LE

I don't know guys. I'm out of ideas, does anyone else have any?

Regards,
Kogami


Automatic Downsampling in ALSA/PulseAudio

Reply #2
PA - https://wiki.archlinux.org/index.php/Audiop...back#Pulseaudio

The libsamplerate resampling method is pretty CPU intensive, check http://blog.ivitera.com/pavel/linux-audio/...ing-libsoxr-lsr

Alsa - if your apps use PA exclusively, no need to change anything there. In PA-enabled distributions the default alsa device is configured to be just a bridge to PA.


I know. I've edited my pulseaudio config file to refect that, but it still downsamples
cat /etc/pulse/daemon.conf:
; daemonize = yes
; fail = yes
; allow-module-loading = yes
; allow-exit = yes
; use-pid-file = yes
; system-instance = no
; local-server-type = user
; enable-shm = 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
; nice-level = -11

; realtime-scheduling = yes
; realtime-priority = 5

; exit-idle-time = 20
; scache-idle-time = 20

; dl-search-path = (depends on architecture)

; load-default-script-file = yes
; default-script-file = /etc/pulse/default.pa

; log-target = auto
; log-level = notice
; log-meta = no
; log-time = no
; log-backtrace = 0

resample-method = src-sinc-medium-quality
; enable-remixing = yes
; enable-lfe-remixing = no

flat-volumes = no

; rlimit-fsize = -1
; rlimit-data = -1
; rlimit-stack = -1
; rlimit-core = -1
; rlimit-as = -1
; rlimit-rss = -1
; rlimit-nproc = -1
; rlimit-nofile = 256
; rlimit-memlock = -1
; rlimit-locks = -1
; rlimit-sigpending = -1
; rlimit-msgqueue = -1
; rlimit-nice = 31
; rlimit-rtprio = 9
; rlimit-rttime = 1000000

; default-sample-format = s24le
; default-sample-rate = 96000
; alternate-sample-rate = 96000
; default-sample-channels = 2
; default-channel-map = front-left,front-right

default-fragments = 8
default-fragment-size-msec = 10

; enable-deferred-volume = yes
deferred-volume-safety-margin-usec = 1
; deferred-volume-extra-delay-usec = 0

So I really can't figure it out. Banshee/Audacious is outputting bit-perfect to pulse, which should be sampling the material at 24/96, which ALSA should accept at the native resolution. But something is broken in that chain.

Automatic Downsampling in ALSA/PulseAudio

Reply #3
If the listing is your current setup, I see the corresponding options commented out, i.e. inactive.

 

Automatic Downsampling in ALSA/PulseAudio

Reply #4
Wow. I can't believe I missed that.
Sorry, that fixed the problem.